24 param =
"reclaim-timer-wait-time";
25 if (expiration_config->contains(param)) {
26 cfg->setReclaimTimerWaitTime(
getInteger(expiration_config, param));
29 param =
"flush-reclaimed-timer-wait-time";
30 if (expiration_config->contains(param)) {
31 cfg->setFlushReclaimedTimerWaitTime(
getInteger(expiration_config,
35 param =
"hold-reclaimed-time";
36 if (expiration_config->contains(param)) {
37 cfg->setHoldReclaimedTime(
getInteger(expiration_config, param));
40 param =
"max-reclaim-leases";
41 if (expiration_config->contains(param)) {
42 cfg->setMaxReclaimLeases(
getInteger(expiration_config, param));
45 param =
"max-reclaim-time";
46 if (expiration_config->contains(param)) {
47 cfg->setMaxReclaimTime(
getInteger(expiration_config, param));
50 param =
"unwarned-reclaim-cycles";
51 if (expiration_config->contains(param)) {
52 cfg->setUnwarnedReclaimCycles(
57 }
catch (
const std::exception& ex) {
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
static const data::Element::Position & getPosition(const std::string &name, const data::ConstElementPtr parent)
Utility method that returns position of an element.
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(isc::data::ConstElementPtr expiration_config, isc::dhcp::CfgExpirationPtr expiration)
Parses parameters in the JSON map, pertaining to the processing of the expired leases.
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
boost::shared_ptr< const Element > ConstElementPtr
boost::shared_ptr< CfgExpiration > CfgExpirationPtr
Defines the logger used by the top-level component of kea-lfc.