29    enable_ping_check_(true),
 
   30    min_ping_requests_(1),
 
   33    ping_channel_threads_(0) {
 
 
   46        local.setEnablePingCheck(value->boolValue());
 
   49    value = 
config->get(
"min-ping-requests");
 
   51        int64_t val = value->intValue();
 
   54                      << val << 
"', must be greater than 0");
 
   57        local.setMinPingRequests(
static_cast<size_t>(val));
 
   60    value = 
config->get(
"reply-timeout");
 
   62        int64_t val = value->intValue();
 
   65                      << val << 
"', must be greater than 0");
 
   68        local.setReplyTimeout(
static_cast<size_t>(val));
 
   71    value = 
config->get(
"ping-cltt-secs");
 
   73        int64_t val = value->intValue();
 
   76                      << val << 
"', cannot be less than 0");
 
   79        local.setPingClttSecs(
static_cast<size_t>(val));
 
   82    value = 
config->get(
"ping-channel-threads");
 
   84        int64_t val = value->intValue();
 
   87                      << val << 
"', cannot be less than 0");
 
   90        local.setPingChannelThreads(
static_cast<size_t>(val));
 
 
static void checkKeywords(const SimpleKeywords &keywords, isc::data::ConstElementPtr scope)
Checks acceptable keywords with their expected type.
To be removed. Please use ConfigError instead.
PingCheckConfig()
Constructor.
void parse(data::ConstElementPtr config)
Extracts member values from an Element::map.
static const data::SimpleKeywords CONFIG_KEYWORDS
List of valid parameters and expected types.
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
boost::shared_ptr< const Element > ConstElementPtr
std::map< std::string, isc::data::Element::types > SimpleKeywords
This specifies all accepted keywords with their types.
Defines the logger used by the top-level component of kea-lfc.