![]() |
Kea 2.7.7
|
UNIX command config aka UNIX control socket info class. More...
#include <unix_command_config.h>
Public Member Functions | |
UnixCommandConfig (isc::data::ConstElementPtr config) | |
Constructor. | |
~UnixCommandConfig ()=default | |
Virtual destructor. | |
std::string | getLockName () |
Returns the lock file name. | |
std::string | getSocketName () const |
Returns socket name. | |
std::string | getSocketType () const |
Returns socket type. | |
void | setSocketName (const std::string &socket_name) |
Sets socket name. | |
void | setSocketType (const std::string &socket_type) |
Sets socket type. | |
virtual isc::data::ElementPtr | toElement () const |
Unparse a configuration object. | |
![]() | |
void | contextToElement (data::ElementPtr map) const |
Merge unparse a user_context object. | |
data::ConstElementPtr | getContext () const |
Returns const pointer to the user context. | |
void | setContext (const data::ConstElementPtr &ctx) |
Sets user context. | |
![]() | |
virtual | ~CfgToElement () |
Destructor. | |
Additional Inherited Members | |
![]() | |
static data::ElementPtr | toElement (data::ConstElementPtr map) |
Copy an Element map. | |
![]() | |
data::ConstElementPtr | user_context_ |
Pointer to the user context (may be NULL) | |
UNIX command config aka UNIX control socket info class.
Definition at line 21 of file unix_command_config.h.
isc::config::UnixCommandConfig::UnixCommandConfig | ( | isc::data::ConstElementPtr | config | ) |
Constructor.
config | Pointer to the configuration to parse. |
Definition at line 25 of file unix_command_config.cc.
References if(), isc_throw, isc::data::Element::map, isc::data::UserContext::setContext(), and isc::data::Element::string.
|
default |
Virtual destructor.
|
inline |
Returns the lock file name.
Definition at line 61 of file unix_command_config.h.
|
inline |
|
inline |
Returns socket type.
Definition at line 35 of file unix_command_config.h.
|
inline |
Sets socket name.
socket_name | The new socket name. |
Definition at line 56 of file unix_command_config.h.
|
inline |
Sets socket type.
socket_type | The new socket type (should be "unix"). |
Definition at line 42 of file unix_command_config.h.
|
virtual |
Unparse a configuration object.
Implements isc::data::CfgToElement.
Definition at line 72 of file unix_command_config.cc.
References isc::data::UserContext::contextToElement(), isc::data::Element::create(), and isc::data::Element::createMap().