Kea 2.7.6
|
#include <config.h>
#include <stat_cmds.h>
#include <stat_cmds_log.h>
#include <cc/command_interpreter.h>
#include <dhcpsrv/cfgmgr.h>
#include <hooks/hooks.h>
#include <process/daemon.h>
Go to the source code of this file.
Functions | |
int | load (LibraryHandle &handle) |
This function is called when the library is loaded. | |
int | multi_threading_compatible () |
This function is called to retrieve the multi-threading compatibility. | |
int | stat_lease4_get (CalloutHandle &handle) |
This is a command callout for 'stat-lease4-get' command. | |
int | stat_lease6_get (CalloutHandle &handle) |
This is a command callout for 'stat-lease6-get' command. | |
int | unload () |
This function is called when the library is unloaded. | |
int load | ( | LibraryHandle & | handle | ) |
This function is called when the library is loaded.
handle | library handle |
Definition at line 53 of file stat_cmds_callouts.cc.
References isc::dhcp::CfgMgr::getFamily(), isc::process::Daemon::getProcName(), isc::dhcp::CfgMgr::instance(), isc_throw, LOG_INFO, isc::hooks::LibraryHandle::registerCommandCallout(), STAT_CMDS_INIT_OK, isc::stat_cmds::stat_cmds_logger, stat_lease4_get(), and stat_lease6_get().
int multi_threading_compatible | ( | ) |
This function is called to retrieve the multi-threading compatibility.
Definition at line 86 of file stat_cmds_callouts.cc.
int stat_lease4_get | ( | CalloutHandle & | handle | ) |
This is a command callout for 'stat-lease4-get' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 33 of file stat_cmds_callouts.cc.
References isc::stat_cmds::StatCmds::statLease4GetHandler().
Referenced by load().
int stat_lease6_get | ( | CalloutHandle & | handle | ) |
This is a command callout for 'stat-lease6-get' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 44 of file stat_cmds_callouts.cc.
References isc::stat_cmds::StatCmds::statLease6GetHandler().
Referenced by load().
int unload | ( | ) |
This function is called when the library is unloaded.
Definition at line 78 of file stat_cmds_callouts.cc.
References LOG_INFO, STAT_CMDS_DEINIT_OK, and isc::stat_cmds::stat_cmds_logger.