Kea
1.9.9-git
|
Configuration specific to a single HA state. More...
#include <ha_config.h>
Public Member Functions | |
StateConfig (const int state) | |
Constructor. More... | |
util::StatePausing | getPausing () const |
Returns pausing mode for the given state. More... | |
int | getState () const |
Returns identifier of the state. More... | |
void | setPausing (const std::string &pausing) |
Sets pausing mode for the given state. More... | |
Static Public Member Functions | |
static std::string | pausingToString (const util::StatePausing &pausing) |
Returns pausing mode in the textual form. More... | |
static util::StatePausing | stringToPausing (const std::string &pausing) |
Converts pausing mode from the textual form. More... | |
Configuration specific to a single HA state.
Definition at line 235 of file ha_config.h.
|
explicit |
|
inline |
Returns pausing mode for the given state.
Definition at line 249 of file ha_config.h.
|
inline |
Returns identifier of the state.
Definition at line 244 of file ha_config.h.
|
static |
Returns pausing mode in the textual form.
pausing | pausing mode. |
Definition at line 129 of file ha_config.cc.
References isc_throw, isc::util::STATE_PAUSE_ALWAYS, isc::util::STATE_PAUSE_NEVER, and isc::util::STATE_PAUSE_ONCE.
void isc::ha::HAConfig::StateConfig::setPausing | ( | const std::string & | pausing | ) |
Sets pausing mode for the given state.
pausing | new pausing mode in the textual form. Supported values are: always, never, once. |
Definition at line 109 of file ha_config.cc.
|
static |
Converts pausing mode from the textual form.
pausing | pausing mode in the textual form. Supported values are: always, never, once. |
Definition at line 114 of file ha_config.cc.
References isc_throw, isc::util::STATE_PAUSE_ALWAYS, isc::util::STATE_PAUSE_NEVER, and isc::util::STATE_PAUSE_ONCE.