41 }
catch (
const std::exception& ex) {
61 }
catch (
const std::exception& ex) {
81 }
catch (
const std::exception& ex) {
101 }
catch (
const std::exception& ex) {
121 }
catch (
const std::exception& ex) {
139 if (family == AF_INET) {
140 if (proc_name !=
"kea-dhcp4") {
142 <<
", expected kea-dhcp4");
145 if (proc_name !=
"kea-dhcp6") {
147 <<
", expected kea-dhcp6");
157 }
catch (
const std::exception& ex) {
int class_update(CalloutHandle &handle)
This is a command callout for 'class-update' command.
int class_del(CalloutHandle &handle)
This is a command callout for 'class-del' command.
int class_get(CalloutHandle &handle)
This is a command callout for 'class-get' command.
int class_add(CalloutHandle &handle)
This is a command callout for 'class-add' command.
int multi_threading_compatible()
This function is called to retrieve the multi-threading compatibility.
int class_list(CalloutHandle &handle)
This is a command callout for 'class-list' 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.
const isc::log::MessageID CLASS_CMDS_CLASS_LIST_HANDLER_FAILED
const isc::log::MessageID CLASS_CMDS_CLASS_ADD_HANDLER_FAILED
const isc::log::MessageID CLASS_CMDS_CLASS_DEL_HANDLER_FAILED
const isc::log::MessageID CLASS_CMDS_DEINIT_OK
const isc::log::MessageID CLASS_CMDS_INIT_OK
const isc::log::MessageID CLASS_CMDS_CLASS_UPDATE_HANDLER_FAILED
const isc::log::MessageID CLASS_CMDS_CLASS_GET_HANDLER_FAILED
const isc::log::MessageID CLASS_CMDS_INIT_FAILED
A generic exception that is thrown when an unexpected error condition occurs.
Implements the logic for processing commands pertaining to client classes manipulation.
uint16_t getFamily() const
Returns address family.
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
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_ERROR(LOGGER, MESSAGE)
Macro to conveniently test error output and log it.
#define LOG_INFO(LOGGER, MESSAGE)
Macro to conveniently test info output and log it.
isc::log::Logger class_cmds_logger("class-cmds-hooks")