Kea  1.5.0
isc::ha Namespace Reference

Classes

class  CommandCreator
 Holds a collection of functions which generate commands used for High Availability. More...
 
class  CommunicationState
 Holds communication state between the two HA peers. More...
 
class  CommunicationState4
 Holds communication state between DHCPv4 servers. More...
 
class  CommunicationState6
 Holds communication state between DHCPv6 servers. More...
 
class  HAConfig
 Storage for High Availability configuration. More...
 
class  HAConfigParser
 Configuration parser for High Availability. More...
 
class  HAConfigValidationError
 Exception thrown when configuration validation fails. More...
 
class  HAImpl
 High Availability hooks library implementation. More...
 
class  HAService
 High availability service. More...
 
class  QueryFilter
 DHCP query filtering class. More...
 

Typedefs

typedef boost::shared_ptr< CommunicationState4CommunicationState4Ptr
 Pointer to the CommunicationState4 object. More...
 
typedef boost::shared_ptr< CommunicationState6CommunicationState6Ptr
 Pointer to the CommunicationState6 object. More...
 
typedef boost::shared_ptr< CommunicationStateCommunicationStatePtr
 Type of the pointer to the CommunicationState object. More...
 
typedef boost::shared_ptr< HAConfigHAConfigPtr
 Pointer to the High Availability configuration structure. More...
 
typedef boost::shared_ptr< HAImplHAImplPtr
 Pointer to the High Availability hooks library implementation. More...
 
typedef boost::shared_ptr< HAServiceHAServicePtr
 Pointer to the HAService class. More...
 

Enumerations

enum  HAServerType { HAServerType::DHCPv4, HAServerType::DHCPv6 }
 Lists possible server types for which HA service is created. More...
 

Functions

std::string stateToString (int state)
 Returns state name. More...
 
int stringToState (const std::string &state_name)
 Returns state for a given name. More...
 

Variables

const int HA_BACKUP_ST = util::StateModel::SM_DERIVED_STATE_MIN + 1
 Backup state. More...
 
const int HA_HOT_STANDBY_ST = util::StateModel::SM_DERIVED_STATE_MIN + 2
 Hot standby state. More...
 
const int HA_LOAD_BALANCING_ST = util::StateModel::SM_DERIVED_STATE_MIN + 3
 Load balancing state. More...
 
isc::log::Logger ha_logger ("ha-hooks")
 
const int HA_PARTNER_DOWN_ST = util::StateModel::SM_DERIVED_STATE_MIN + 4
 Partner down state. More...
 
const int HA_READY_ST = util::StateModel::SM_DERIVED_STATE_MIN + 5
 Server ready state, i.e. synchronized database, can enable DHCP service. More...
 
const int HA_SYNCING_ST = util::StateModel::SM_DERIVED_STATE_MIN + 6
 Synchronizing database state. More...
 
const int HA_TERMINATED_ST = util::StateModel::SM_DERIVED_STATE_MIN + 7
 HA service terminated state. More...
 
const int HA_UNAVAILABLE_ST = util::StateModel::SM_DERIVED_STATE_MIN + 1000
 Special state indicating that this server is unable to communicate with the partner. More...
 
const int HA_WAITING_ST = util::StateModel::SM_DERIVED_STATE_MIN + 8
 Server waiting state, i.e. waiting for another server to be ready. More...
 
HAImplPtr impl
 

Typedef Documentation

◆ CommunicationState4Ptr

Pointer to the CommunicationState4 object.

Definition at line 382 of file communication_state.h.

◆ CommunicationState6Ptr

Pointer to the CommunicationState6 object.

Definition at line 432 of file communication_state.h.

◆ CommunicationStatePtr

Type of the pointer to the CommunicationState object.

Definition at line 323 of file communication_state.h.

◆ HAConfigPtr

typedef boost::shared_ptr<HAConfig> isc::ha::HAConfigPtr

Pointer to the High Availability configuration structure.

Definition at line 509 of file ha_config.h.

◆ HAImplPtr

typedef boost::shared_ptr<HAImpl> isc::ha::HAImplPtr

Pointer to the High Availability hooks library implementation.

Definition at line 156 of file ha_impl.h.

◆ HAServicePtr

typedef boost::shared_ptr<HAService> isc::ha::HAServicePtr

Pointer to the HAService class.

Definition at line 752 of file ha_service.h.

Enumeration Type Documentation

◆ HAServerType

enum isc::ha::HAServerType
strong

Lists possible server types for which HA service is created.

Enumerator
DHCPv4 
DHCPv6 

Definition at line 14 of file ha_server_type.h.

Function Documentation

◆ stateToString()

std::string isc::ha::stateToString ( int  state)

Returns state name.

Parameters
statestate identifier for which name should be returned.
Exceptions
BadValueif the state identifier is unsupported.

Definition at line 12 of file ha_service_states.cc.

References HA_BACKUP_ST, HA_HOT_STANDBY_ST, HA_LOAD_BALANCING_ST, HA_PARTNER_DOWN_ST, HA_READY_ST, HA_SYNCING_ST, HA_TERMINATED_ST, HA_UNAVAILABLE_ST, HA_WAITING_ST, and isc_throw.

Referenced by isc::ha::HAService::conditionalLogPausedState(), and isc::ha::HAService::defineStates().

◆ stringToState()

int isc::ha::stringToState ( const std::string &  state_name)

Returns state for a given name.

Parameters
state_namename of the state to be returned.
Exceptions
BadValueif the state name is unsupported.

Definition at line 39 of file ha_service_states.cc.

References HA_BACKUP_ST, HA_HOT_STANDBY_ST, HA_LOAD_BALANCING_ST, HA_PARTNER_DOWN_ST, HA_READY_ST, HA_SYNCING_ST, HA_TERMINATED_ST, HA_UNAVAILABLE_ST, HA_WAITING_ST, and isc_throw.

Variable Documentation

◆ HA_BACKUP_ST

const int isc::ha::HA_BACKUP_ST = util::StateModel::SM_DERIVED_STATE_MIN + 1

◆ HA_HOT_STANDBY_ST

◆ HA_LOAD_BALANCING_ST

◆ ha_logger

◆ HA_PARTNER_DOWN_ST

◆ HA_READY_ST

◆ HA_SYNCING_ST

◆ HA_TERMINATED_ST

◆ HA_UNAVAILABLE_ST

◆ HA_WAITING_ST

◆ impl