36    if (value->get(
"thread-pool-size")) {
 
   37        auto thread_pool_size = 
getInteger(value, 
"thread-pool-size");
 
   38        uint32_t max_size = std::numeric_limits<uint16_t>::max();
 
   39        if (thread_pool_size < 0) {
 
   41                      "thread pool size code must not be negative (" 
   44        if (thread_pool_size > max_size) {
 
   46                      << thread_pool_size << 
"', it must not be greater than '" 
   53    if (value->get(
"packet-queue-size")) {
 
   54        auto packet_queue_size = 
getInteger(value, 
"packet-queue-size");
 
   55        uint32_t max_size = std::numeric_limits<uint16_t>::max();
 
   56        if (packet_queue_size < 0) {
 
   58                      "packet queue size code must not be negative (" 
   61        if (packet_queue_size > max_size) {
 
   63                      << packet_queue_size << 
"', it must not be greater than '" 
 
static const data::Element::Position & getPosition(const std::string &name, const data::ConstElementPtr parent)
Utility method that returns position of an element.
static bool getBoolean(isc::data::ConstElementPtr scope, const std::string &name)
Returns a boolean parameter from a scope.
static int64_t getInteger(isc::data::ConstElementPtr scope, const std::string &name)
Returns an integer parameter from a scope.
To be removed. Please use ConfigError instead.
void parse(SrvConfig &srv_cfg, const isc::data::ConstElementPtr &value)
parses JSON structure.
Specifies current DHCP configuration.
void setDHCPMultiThreading(const isc::data::ConstElementPtr dhcp_multi_threading)
Sets information about the dhcp multi threading.
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
boost::shared_ptr< const Element > ConstElementPtr
Defines the logger used by the top-level component of kea-lfc.