Kea  1.9.9-git
ha_callouts.cc File Reference
#include <config.h>
#include <ha_impl.h>
#include <ha_log.h>
#include <asiolink/io_service.h>
#include <cc/command_interpreter.h>
#include <dhcpsrv/cfgmgr.h>
#include <dhcpsrv/network_state.h>
#include <exceptions/exceptions.h>
#include <hooks/hooks.h>
#include <process/daemon.h>
+ Include dependency graph for ha_callouts.cc:

Go to the source code of this file.

Namespaces

 isc
 Defines the logger used by the top-level component of kea-dhcp-ddns.
 
 isc::ha
 

Functions

int buffer4_receive (CalloutHandle &handle)
 buffer4_receive callout implementation. More...
 
int buffer6_receive (CalloutHandle &handle)
 buffer6_receive callout implementation. More...
 
int command_processed (CalloutHandle &handle)
 command_processed callout implementation. More...
 
int continue_command (CalloutHandle &handle)
 ha-continue command handler implementation. More...
 
int dhcp4_srv_configured (CalloutHandle &handle)
 dhcp4_srv_configured callout implementation. More...
 
int dhcp6_srv_configured (CalloutHandle &handle)
 dhcp6_srv_configured callout implementation. More...
 
int ha_reset_command (CalloutHandle &handle)
 ha-reset command handler implementation. More...
 
int heartbeat_command (CalloutHandle &handle)
 Heartbeat command handler implementation. More...
 
int leases4_committed (CalloutHandle &handle)
 leases4_committed callout implementation. More...
 
int leases6_committed (CalloutHandle &handle)
 leases6_committed callout implementation. More...
 
int load (LibraryHandle &handle)
 This function is called when the library is loaded. More...
 
int maintenance_cancel_command (CalloutHandle &handle)
 ha-maintenance-cancel command handler implementation. More...
 
int maintenance_notify_command (CalloutHandle &handle)
 ha-maintenance-notify command handler implementation. More...
 
int maintenance_start_command (CalloutHandle &handle)
 ha-maintenance-start command handler implementation. More...
 
int multi_threading_compatible ()
 This function is called to retrieve the multi-threading compatibility. More...
 
int scopes_command (CalloutHandle &handle)
 ha-scopes command handler implementation. More...
 
int sync_command (CalloutHandle &handle)
 ha-sync command handler implementation. More...
 
int unload ()
 This function is called when the library is unloaded. More...
 

Variables

HAImplPtr isc::ha::impl
 

Function Documentation

int buffer4_receive ( CalloutHandle handle)

buffer4_receive callout implementation.

Parameters
handlecallout handle.

Definition at line 62 of file ha_callouts.cc.

References isc::hooks::CalloutHandle::getStatus(), isc::ha::HA_BUFFER4_RECEIVE_FAILED, isc::ha::ha_logger, isc::ha::impl, and LOG_ERROR.

+ Here is the call graph for this function:

int buffer6_receive ( CalloutHandle handle)

buffer6_receive callout implementation.

Parameters
handlecallout handle.

Definition at line 124 of file ha_callouts.cc.

References isc::hooks::CalloutHandle::getStatus(), isc::ha::HA_BUFFER6_RECEIVE_FAILED, isc::ha::ha_logger, isc::ha::impl, and LOG_ERROR.

+ Here is the call graph for this function:

int command_processed ( CalloutHandle handle)

command_processed callout implementation.

Parameters
handlecallout handle.

Definition at line 168 of file ha_callouts.cc.

References isc::ha::HA_COMMAND_PROCESSED_FAILED, isc::ha::ha_logger, isc::ha::impl, and LOG_ERROR.

int continue_command ( CalloutHandle handle)

ha-continue command handler implementation.

Definition at line 222 of file ha_callouts.cc.

References isc::ha::HA_CONTINUE_HANDLER_FAILED, isc::ha::ha_logger, isc::ha::impl, and LOG_ERROR.

Referenced by load().

int dhcp4_srv_configured ( CalloutHandle handle)

dhcp4_srv_configured callout implementation.

Parameters
handlecallout handle.

Definition at line 43 of file ha_callouts.cc.

References isc::hooks::CalloutHandle::getArgument(), isc::ha::HA_DHCP4_START_SERVICE_FAILED, isc::ha::ha_logger, isc::ha::impl, and LOG_ERROR.

+ Here is the call graph for this function:

int dhcp6_srv_configured ( CalloutHandle handle)

dhcp6_srv_configured callout implementation.

Parameters
handlecallout handle.

Definition at line 105 of file ha_callouts.cc.

References isc::hooks::CalloutHandle::getArgument(), isc::ha::HA_DHCP6_START_SERVICE_FAILED, isc::ha::ha_logger, isc::ha::impl, and LOG_ERROR.

+ Here is the call graph for this function:

int ha_reset_command ( CalloutHandle handle)

ha-reset command handler implementation.

Definition at line 274 of file ha_callouts.cc.

References isc::ha::ha_logger, isc::ha::HA_RESET_HANDLER_FAILED, isc::ha::impl, and LOG_ERROR.

Referenced by load().

int heartbeat_command ( CalloutHandle handle)

Heartbeat command handler implementation.

Definition at line 182 of file ha_callouts.cc.

References isc::ha::HA_HEARTBEAT_HANDLER_FAILED, isc::ha::ha_logger, isc::ha::impl, and LOG_ERROR.

Referenced by load().

int leases4_committed ( CalloutHandle handle)

leases4_committed callout implementation.

Parameters
handlecallout handle.

Definition at line 83 of file ha_callouts.cc.

References isc::hooks::CalloutHandle::getStatus(), isc::ha::HA_LEASES4_COMMITTED_FAILED, isc::ha::ha_logger, isc::ha::impl, and LOG_ERROR.

+ Here is the call graph for this function:

int leases6_committed ( CalloutHandle handle)

leases6_committed callout implementation.

Parameters
handlecallout handle.

Definition at line 146 of file ha_callouts.cc.

References isc::hooks::CalloutHandle::getStatus(), isc::ha::HA_LEASES6_COMMITTED_FAILED, isc::ha::ha_logger, isc::ha::impl, and LOG_ERROR.

+ Here is the call graph for this function:

int maintenance_cancel_command ( CalloutHandle handle)

ha-maintenance-cancel command handler implementation.

Definition at line 261 of file ha_callouts.cc.

References isc::ha::ha_logger, isc::ha::HA_MAINTENANCE_CANCEL_HANDLER_FAILED, isc::ha::impl, and LOG_ERROR.

Referenced by load().

int maintenance_notify_command ( CalloutHandle handle)

ha-maintenance-notify command handler implementation.

Definition at line 235 of file ha_callouts.cc.

References isc::ha::ha_logger, isc::ha::HA_MAINTENANCE_NOTIFY_HANDLER_FAILED, isc::ha::impl, and LOG_ERROR.

Referenced by load().

int maintenance_start_command ( CalloutHandle handle)

ha-maintenance-start command handler implementation.

Definition at line 248 of file ha_callouts.cc.

References isc::ha::ha_logger, isc::ha::HA_MAINTENANCE_START_HANDLER_FAILED, isc::ha::impl, and LOG_ERROR.

Referenced by load().

int multi_threading_compatible ( )

This function is called to retrieve the multi-threading compatibility.

Returns
1 which means compatible with multi-threading.

Definition at line 347 of file ha_callouts.cc.

int scopes_command ( CalloutHandle handle)

ha-scopes command handler implementation.

Definition at line 209 of file ha_callouts.cc.

References isc::ha::ha_logger, isc::ha::HA_SCOPES_HANDLER_FAILED, isc::ha::impl, and LOG_ERROR.

Referenced by load().

int sync_command ( CalloutHandle handle)

ha-sync command handler implementation.

Definition at line 196 of file ha_callouts.cc.

References isc::ha::ha_logger, isc::ha::HA_SYNC_HANDLER_FAILED, isc::ha::impl, and LOG_ERROR.

Referenced by load().

int unload ( )

This function is called when the library is unloaded.

Returns
0 if deregistration was successful, 1 otherwise

Definition at line 338 of file ha_callouts.cc.

References isc::ha::HA_DEINIT_OK, isc::ha::ha_logger, isc::ha::impl, and LOG_INFO.