![]() |
Kea 3.2.1-git
|
Houses the Ping check configuration parameters for a single scope (e.g. More...
#include <ping_check_config.h>
Public Member Functions | |
| PingCheckConfig () | |
| Constructor. | |
| ~PingCheckConfig ()=default | |
| Destructor. | |
| bool | getEnablePingCheck () const |
| Fetches the value of enable-ping-check. | |
| uint32_t | getMinPingRequests () const |
| Fetches the value of min-ping-requests. | |
| uint32_t | getPingChannelThreads () const |
| Fetches the value of ping-channel-threads. | |
| uint32_t | getPingClttSecs () const |
| Fetches the value of ping-cltt-secs. | |
| uint32_t | getReplyTimeout () const |
| Fetches the value of reply-timeout. | |
| void | parse (data::ConstElementPtr config) |
| Extracts member values from an Element::map. | |
| void | setEnablePingCheck (bool value) |
| Sets the value of enable-ping-check. | |
| void | setMinPingRequests (uint32_t value) |
| Sets the value of min-ping-requests. | |
| void | setPingChannelThreads (uint32_t value) |
| Sets the value of ping-channel-threads. | |
| void | setPingClttSecs (uint32_t value) |
| Sets the value of ping-cltt-secs. | |
| void | setReplyTimeout (uint32_t value) |
| Sets the value of reply-timeout. | |
Static Public Attributes | |
| static const data::SimpleKeywords | CONFIG_KEYWORDS |
| List of valid parameters and expected types. | |
Houses the Ping check configuration parameters for a single scope (e.g.
global, subnet...);
Definition at line 18 of file ping_check_config.h.
| isc::ping_check::PingCheckConfig::PingCheckConfig | ( | ) |
Constructor.
Definition at line 28 of file ping_check_config.cc.
Referenced by isc::ping_check::PingCheckMgr::PingCheckMgr(), isc::ping_check::PingCheckMgr::configure(), parse(), and isc::ping_check::ConfigCache::parseAndCacheConfig().
|
default |
|
inline |
Fetches the value of enable-ping-check.
Definition at line 39 of file ping_check_config.h.
|
inline |
Fetches the value of min-ping-requests.
Definition at line 53 of file ping_check_config.h.
|
inline |
Fetches the value of ping-channel-threads.
Definition at line 95 of file ping_check_config.h.
|
inline |
Fetches the value of ping-cltt-secs.
Definition at line 81 of file ping_check_config.h.
|
inline |
Fetches the value of reply-timeout.
Definition at line 67 of file ping_check_config.h.
| void isc::ping_check::PingCheckConfig::parse | ( | data::ConstElementPtr | config | ) |
Extracts member values from an Element::map.
| config | map of configuration parameters |
| BadValue | if invalid values are detected. |
Definition at line 37 of file ping_check_config.cc.
References PingCheckConfig(), isc::data::SimpleParser::checkKeywords(), CONFIG_KEYWORDS, and isc_throw.
Referenced by ~PingCheckConfig().
|
inline |
Sets the value of enable-ping-check.
| value | new value for enable-ping-check |
Definition at line 46 of file ping_check_config.h.
|
inline |
Sets the value of min-ping-requests.
| value | new value for min-ping-requests |
Definition at line 60 of file ping_check_config.h.
|
inline |
Sets the value of ping-channel-threads.
| value | new value for ping-channel-threads |
Definition at line 102 of file ping_check_config.h.
|
inline |
Sets the value of ping-cltt-secs.
| value | new value for ping-cltt-secs |
Definition at line 88 of file ping_check_config.h.
|
inline |
Sets the value of reply-timeout.
| value | new value for reply-timeout |
Definition at line 74 of file ping_check_config.h.
|
static |
List of valid parameters and expected types.
Definition at line 21 of file ping_check_config.h.
Referenced by parse().