57 if (family == AF_INET) {
58 if (proc_name !=
"kea-dhcp4") {
60 <<
", expected kea-dhcp4");
63 if (proc_name !=
"kea-dhcp6") {
65 <<
", expected kea-dhcp6");
A generic exception that is thrown when an unexpected error condition occurs.
static CfgMgr & instance()
returns a single instance of Configuration Manager
Per-packet callout handle.
void registerCommandCallout(const std::string &command_name, CalloutPtr callout)
Register control command handler.
static std::string getProcName()
returns the process name This value is used as when forming the default PID file name
Implements the logic for processing commands pertaining to stat manipulation.
int statLease4GetHandler(hooks::CalloutHandle &handle)
stat-lease4-get command handler
int statLease6GetHandler(hooks::CalloutHandle &handle)
stat-lease6-get command handler
This file contains several functions and constants that are used for handling commands and responses ...
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
#define LOG_INFO(LOGGER, MESSAGE)
Macro to conveniently test info output and log it.
isc::log::Logger stat_cmds_logger("stat-cmds-hooks")
int stat_lease6_get(CalloutHandle &handle)
This is a command callout for 'stat-lease6-get' command.
int stat_lease4_get(CalloutHandle &handle)
This is a command callout for 'stat-lease4-get' command.
int multi_threading_compatible()
This function is called to retrieve the multi-threading compatibility.
int unload()
This function is called when the library is unloaded.
int load(LibraryHandle &handle)
This function is called when the library is loaded.
const isc::log::MessageID STAT_CMDS_DEINIT_OK
const isc::log::MessageID STAT_CMDS_INIT_OK