Kea 2.7.5
|
Represents a Managed CfgServer. More...
#include <netconf_config.h>
Public Member Functions | |
CfgServer (const std::string &model, CfgControlSocketPtr ctrl_sock) | |
Constructor. | |
virtual | ~CfgServer ()=default |
Destructor (doing nothing). | |
bool | getBootUpdate () const |
Getter which returns the boot-update flag. | |
const CfgControlSocketPtr & | getCfgControlSocket () const |
Getter which returns the control socket. | |
const std::string | getModel () const |
Getter which returns the model name. | |
bool | getSubscribeChanges () const |
Getter which returns the subscribe-changes flag. | |
bool | getSubscribeNotifications () const |
Getter which returns the subscribe-changes flag. | |
bool | getValidateChanges () const |
Getter which returns the validate-changes flag. | |
void | setBootUpdate (bool boot_update) |
Set the boot-update flag. | |
void | setSubscribeChanges (bool subscribe_changes) |
Set the subscribe-changes flag. | |
void | setSubscribeNotifications (bool subscribe_notifications) |
Set the subscribe-notifications flag. | |
void | setValidateChanges (bool validate_changes) |
Set the validate-changes flag. | |
isc::data::ElementPtr | toElement () const override final |
Unparse a configuration object. | |
std::string | toText () const |
Returns a text representation for the server. | |
Public Member Functions inherited from isc::data::UserContext | |
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. | |
Public Member Functions inherited from isc::data::CfgToElement | |
virtual | ~CfgToElement () |
Destructor. | |
Additional Inherited Members | |
Static Public Member Functions inherited from isc::data::UserContext | |
static data::ElementPtr | toElement (data::ConstElementPtr map) |
Copy an Element map. | |
Protected Attributes inherited from isc::data::UserContext | |
data::ConstElementPtr | user_context_ |
Pointer to the user context (may be NULL) | |
Represents a Managed CfgServer.
Acts as a storage class containing the basic attributes and the Control Socket which describe a Managed CfgServer.
Definition at line 149 of file netconf_config.h.
isc::netconf::CfgServer::CfgServer | ( | const std::string & | model, |
CfgControlSocketPtr | ctrl_sock ) |
Constructor.
model | The model name. |
ctrl_sock | The control socket. |
Definition at line 74 of file netconf_config.cc.
|
virtualdefault |
Destructor (doing nothing).
|
inline |
Getter which returns the boot-update flag.
Definition at line 177 of file netconf_config.h.
|
inline |
Getter which returns the control socket.
Definition at line 170 of file netconf_config.h.
|
inline |
Getter which returns the model name.
Definition at line 163 of file netconf_config.h.
|
inline |
Getter which returns the subscribe-changes flag.
Definition at line 191 of file netconf_config.h.
|
inline |
Getter which returns the subscribe-changes flag.
Definition at line 198 of file netconf_config.h.
|
inline |
Getter which returns the validate-changes flag.
Definition at line 219 of file netconf_config.h.
|
inline |
Set the boot-update flag.
boot_update | The boot-update flag. |
Definition at line 184 of file netconf_config.h.
|
inline |
Set the subscribe-changes flag.
subscribe_changes | The subscribe-changes flag. |
Definition at line 205 of file netconf_config.h.
|
inline |
Set the subscribe-notifications flag.
subscribe_notifications | the subscribe-notifications flag |
Definition at line 212 of file netconf_config.h.
|
inline |
Set the validate-changes flag.
validate_changes | The validate-changes flag. |
Definition at line 226 of file netconf_config.h.
|
finaloverridevirtual |
Unparse a configuration object.
Implements isc::data::CfgToElement.
Definition at line 103 of file netconf_config.cc.
References isc::data::UserContext::contextToElement(), isc::data::Element::create(), and isc::data::Element::createMap().
string isc::netconf::CfgServer::toText | ( | ) | const |
Returns a text representation for the server.
Definition at line 81 of file netconf_config.cc.
References isc::netconf::CfgControlSocket::HTTP, isc::netconf::CfgControlSocket::STDOUT, and isc::netconf::CfgControlSocket::UNIX.