23    return (global_config_);
 
 
   38    return (findConfigInternal(subnet_id, 
config));
 
 
   43    auto it = configs_.find(subnet_id);
 
   44    if (it != configs_.end()) {
 
   58        if (ping_check_params) {
 
   65                config->parse(ping_check_params);
 
 
   81    configs_[subnet_id] = 
config;
 
 
   97    return (configs_.size());
 
 
  100boost::posix_time::ptime
 
 
A generic exception that is thrown if a parameter given to a method is considered invalid in that con...
boost::posix_time::ptime getModificationTime() const
Returns timestamp.
void updateModificationTime()
Sets timestamp to the current time.
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.
PingCheckConfigPtr parseAndCacheConfig(const dhcp::SubnetID &subnet_id, data::ConstElementPtr &user_context)
Parses a config string and caches for the given subnet.
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.
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
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.
Defines the logger used by the top-level component of kea-lfc.
RAII lock object to protect the code in the same scope with a mutex.