16 #include <boost/noncopyable.hpp>
17 #include <boost/shared_ptr.hpp>
31 class HAImpl :
public boost::noncopyable {
void startService(const asiolink::IOServicePtr &io_service, const dhcp::NetworkStatePtr &network_state, const HAServerType &server_type)
Creates high availability service using current configuration.
void synchronizeHandler(hooks::CalloutHandle &callout_handle)
Implements handler for the ha-sync command.
boost::shared_ptr< HAImpl > HAImplPtr
Pointer to the High Availability hooks library implementation.
void maintenanceCancelHandler(hooks::CalloutHandle &callout_handle)
Implements handler for the ha-maintenance-cancel command.
boost::shared_ptr< IOService > IOServicePtr
Defines a smart pointer to an IOService instance.
HAConfigPtr getConfig() const
Returns parsed configuration.
void maintenanceNotifyHandler(hooks::CalloutHandle &callout_handle)
Implements handler for the ha-maintenance-notify command.
HAServicePtr service_
Pointer to the high availability service (state machine).
void maintenanceStartHandler(hooks::CalloutHandle &callout_handle)
Implements handler for the ha-maintenance-start command.
HAServerType
Lists possible server types for which HA service is created.
void buffer6Receive(hooks::CalloutHandle &callout_handle)
Implementation of the "buffer6_receive" callout.
Per-packet callout handle.
boost::shared_ptr< HAService > HAServicePtr
Pointer to the HAService class.
boost::shared_ptr< const Element > ConstElementPtr
void haResetHandler(hooks::CalloutHandle &callout_handle)
Implements handler for the ha-reset command.
void scopesHandler(hooks::CalloutHandle &callout_handle)
Implements handler for the ha-scopes command.
void continueHandler(hooks::CalloutHandle &callout_handle)
Implements handler for the ha-continue command.
Defines the logger used by the top-level component of kea-dhcp-ddns.
void configure(const data::ConstElementPtr &input_config)
Parses configuration.
void leases4Committed(hooks::CalloutHandle &callout_handle)
Implementation of the "leases4_committed" callout.
HAConfigPtr config_
Holds parsed configuration.
High Availability hooks library implementation.
boost::shared_ptr< NetworkState > NetworkStatePtr
Pointer to the NetworkState object.
void buffer4Receive(hooks::CalloutHandle &callout_handle)
Implementation of the "buffer4_receive" callout.
void commandProcessed(hooks::CalloutHandle &callout_handle)
Implementation of the "command_processed" callout.
void leases6Committed(hooks::CalloutHandle &callout_handle)
Implementation of the "leases6_committed" callout.
void heartbeatHandler(hooks::CalloutHandle &callout_handle)
Implements handle for the heartbeat command.
boost::shared_ptr< HAConfig > HAConfigPtr
Pointer to the High Availability configuration structure.