19        return (
"communication-recovery");
 
   21        return (
"hot-standby");
 
   23        return (
"load-balancing");
 
   25        return (
"in-maintenance");
 
   27        return (
"partner-down");
 
   29        return (
"partner-in-maintenance");
 
   31        return (
"passive-backup");
 
   37        return (
"terminated");
 
   41        return (
"unavailable");
 
 
   50    if (state_name == 
"backup") {
 
   53    } 
else if (state_name == 
"communication-recovery") {
 
   56    } 
else if (state_name == 
"hot-standby") {
 
   59    } 
else if (state_name == 
"load-balancing") {
 
   62    } 
else if (state_name == 
"in-maintenance") {
 
   65    } 
else if (state_name == 
"partner-down") {
 
   68    } 
else if (state_name == 
"partner-in-maintenance") {
 
   71    } 
else if (state_name == 
"passive-backup") {
 
   74    } 
else if (state_name == 
"ready") {
 
   77    } 
else if (state_name == 
"syncing") {
 
   80    } 
else if (state_name == 
"terminated") {
 
   83    } 
else if (state_name == 
"waiting") {
 
   86    } 
else if (state_name == 
"unavailable") {
 
 
A generic exception that is thrown if a parameter given to a method is considered invalid in that con...
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
const int HA_PASSIVE_BACKUP_ST
In passive-backup state with a single active server and backup servers.
const int HA_HOT_STANDBY_ST
Hot standby state.
const int HA_COMMUNICATION_RECOVERY_ST
Communication recovery state.
const int HA_UNAVAILABLE_ST
Special state indicating that this server is unable to communicate with the partner.
const int HA_TERMINATED_ST
HA service terminated state.
const int HA_IN_MAINTENANCE_ST
In maintenance state.
const int HA_LOAD_BALANCING_ST
Load balancing state.
const int HA_PARTNER_DOWN_ST
Partner down state.
const int HA_PARTNER_IN_MAINTENANCE_ST
Partner in-maintenance state.
const int HA_WAITING_ST
Server waiting state, i.e. waiting for another server to be ready.
const int HA_BACKUP_ST
Backup state.
const int HA_SYNCING_ST
Synchronizing database state.
std::string stateToString(int state)
Returns state name.
const int HA_READY_ST
Server ready state, i.e. synchronized database, can enable DHCP service.
int stringToState(const std::string &state_name)
Returns state for a given name.
Defines the logger used by the top-level component of kea-lfc.