|  | Kea 3.0.0
    | 
Configuration specific to a single HA state. More...
#include <ha_config.h>
| Public Member Functions | |
| StateConfig (const int state) | |
| Constructor. | |
| util::StatePausing | getPausing () const | 
| Returns pausing mode for the given state. | |
| int | getState () const | 
| Returns identifier of the state. | |
| void | setPausing (const std::string &pausing) | 
| Sets pausing mode for the given state. | |
| Static Public Member Functions | |
| static std::string | pausingToString (const util::StatePausing &pausing) | 
| Returns pausing mode in the textual form. | |
| static util::StatePausing | stringToPausing (const std::string &pausing) | 
| Converts pausing mode from the textual form. | |
Configuration specific to a single HA state.
Definition at line 248 of file ha_config.h.
| 
 | explicit | 
Constructor.
| state | state identifier. | 
Definition at line 107 of file ha_config.cc.
References isc::util::STATE_PAUSE_NEVER.
| 
 | inline | 
Returns pausing mode for the given state.
Definition at line 262 of file ha_config.h.
| 
 | inline | 
Returns identifier of the state.
Definition at line 257 of file ha_config.h.
| 
 | static | 
Returns pausing mode in the textual form.
| pausing | pausing mode. | 
Definition at line 132 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 112 of file ha_config.cc.
References stringToPausing().
| 
 | static | 
Converts pausing mode from the textual form.
| pausing | pausing mode in the textual form. Supported values are: always, never, once. | 
Definition at line 117 of file ha_config.cc.
References isc_throw, isc::util::STATE_PAUSE_ALWAYS, isc::util::STATE_PAUSE_NEVER, and isc::util::STATE_PAUSE_ONCE.
Referenced by setPausing().