14 #include <boost/foreach.hpp>
23 CfgExpirationPtr cfg = CfgMgr::instance().getStagingCfg()->getCfgExpiration();
28 param =
"reclaim-timer-wait-time";
29 if (expiration_config->contains(param)) {
30 cfg->setReclaimTimerWaitTime(getInteger(expiration_config, param));
33 param =
"flush-reclaimed-timer-wait-time";
34 if (expiration_config->contains(param)) {
35 cfg->setFlushReclaimedTimerWaitTime(getInteger(expiration_config,
39 param =
"hold-reclaimed-time";
40 if (expiration_config->contains(param)) {
41 cfg->setHoldReclaimedTime(getInteger(expiration_config, param));
44 param =
"max-reclaim-leases";
45 if (expiration_config->contains(param)) {
46 cfg->setMaxReclaimLeases(getInteger(expiration_config, param));
49 param =
"max-reclaim-time";
50 if (expiration_config->contains(param)) {
51 cfg->setMaxReclaimTime(getInteger(expiration_config, param));
54 param =
"unwarned-reclaim-cycles";
55 if (expiration_config->contains(param)) {
56 cfg->setUnwarnedReclaimCycles(
57 getInteger(expiration_config, param));
61 }
catch (
const std::exception& ex) {
64 << getPosition(param, expiration_config) <<
")");
boost::shared_ptr< CfgExpiration > CfgExpirationPtr
Pointer to the Non-const object.
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
To be removed. Please use ConfigError instead.
boost::shared_ptr< const Element > ConstElementPtr
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
Defines the logger used by the top-level component of kea-dhcp-ddns.