132 std::map<dhcp::SubnetID, PingCheckConfigPtr> configs_;
138 const boost::scoped_ptr<std::mutex> mutex_;
This class represents configuration element which is associated with database identifier and the modi...
void setGlobalConfig(PingCheckConfigPtr &config)
Set the global level configuration.
bool findConfig(const dhcp::SubnetID &subnet_id, PingCheckConfigPtr &config)
Get the config for a given subnet.
ConfigCache()
Constructor.
PingCheckConfigPtr parseAndCacheConfig(const dhcp::SubnetID &subnet_id, data::ConstElementPtr &user_context)
Parses a config string and caches for the given subnet.
virtual ~ConfigCache()=default
Destructor.
void flush()
Discards the subnet entries in the cache.
PingCheckConfigPtr & getGlobalConfig()
Get the global level configuration.
size_t size()
Get the number of entries in the cache.
void cacheConfig(const dhcp::SubnetID &subnet_id, PingCheckConfigPtr &config)
Adds (or replaces) the config for a given subnet to the cache.
boost::posix_time::ptime getLastFlushTime()
Get the last time the cache was flushed.
Houses the Ping check configuration parameters for a single scope (e.g.
boost::shared_ptr< const Element > ConstElementPtr
uint32_t SubnetID
Defines unique IPv4 or IPv6 subnet identifier.
boost::shared_ptr< PingCheckConfig > PingCheckConfigPtr
Defines a shared pointer to a PingCheckConfig.
boost::shared_ptr< ConfigCache > ConfigCachePtr
Defines a shared pointer to a ConfigCache.
Defines the logger used by the top-level component of kea-lfc.