Kea 2.5.8
isc::netconf::CfgServer Class Reference

Represents a Managed CfgServer. More...

#include <netconf_config.h>

+ Inheritance diagram for isc::netconf::CfgServer:

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 CfgControlSocketPtrgetCfgControlSocket () 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.
 
virtual isc::data::ElementPtr toElement () const =0
 Unparse a configuration object.
 

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)
 

Detailed Description

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 150 of file netconf_config.h.

Constructor & Destructor Documentation

◆ CfgServer()

isc::netconf::CfgServer::CfgServer ( const std::string &  model,
CfgControlSocketPtr  ctrl_sock 
)

Constructor.

Parameters
modelThe model name.
ctrl_sockThe control socket.

Definition at line 74 of file netconf_config.cc.

◆ ~CfgServer()

virtual isc::netconf::CfgServer::~CfgServer ( )
virtualdefault

Destructor (doing nothing).

Member Function Documentation

◆ getBootUpdate()

bool isc::netconf::CfgServer::getBootUpdate ( ) const
inline

Getter which returns the boot-update flag.

Returns
returns the boot-update flag as a bool.

Definition at line 178 of file netconf_config.h.

◆ getCfgControlSocket()

const CfgControlSocketPtr & isc::netconf::CfgServer::getCfgControlSocket ( ) const
inline

Getter which returns the control socket.

Returns
returns the control socket as a CfgControlSocketPtr.

Definition at line 171 of file netconf_config.h.

◆ getModel()

const std::string isc::netconf::CfgServer::getModel ( ) const
inline

Getter which returns the model name.

Returns
returns the model name as a std::string

Definition at line 164 of file netconf_config.h.

◆ getSubscribeChanges()

bool isc::netconf::CfgServer::getSubscribeChanges ( ) const
inline

Getter which returns the subscribe-changes flag.

Returns
returns the subscribe-changes flag as a bool.

Definition at line 192 of file netconf_config.h.

◆ getSubscribeNotifications()

bool isc::netconf::CfgServer::getSubscribeNotifications ( ) const
inline

Getter which returns the subscribe-changes flag.

Returns
returns the subscribe-changes flag as a bool.

Definition at line 199 of file netconf_config.h.

◆ getValidateChanges()

bool isc::netconf::CfgServer::getValidateChanges ( ) const
inline

Getter which returns the validate-changes flag.

Returns
returns the validate-changes flag as a bool.

Definition at line 220 of file netconf_config.h.

◆ setBootUpdate()

void isc::netconf::CfgServer::setBootUpdate ( bool  boot_update)
inline

Set the boot-update flag.

Parameters
boot_updateThe boot-update flag.

Definition at line 185 of file netconf_config.h.

◆ setSubscribeChanges()

void isc::netconf::CfgServer::setSubscribeChanges ( bool  subscribe_changes)
inline

Set the subscribe-changes flag.

Parameters
subscribe_changesThe subscribe-changes flag.

Definition at line 206 of file netconf_config.h.

◆ setSubscribeNotifications()

void isc::netconf::CfgServer::setSubscribeNotifications ( bool  subscribe_notifications)
inline

Set the subscribe-notifications flag.

Parameters
subscribe_notificationsthe subscribe-notifications flag

Definition at line 213 of file netconf_config.h.

◆ setValidateChanges()

void isc::netconf::CfgServer::setValidateChanges ( bool  validate_changes)
inline

Set the validate-changes flag.

Parameters
validate_changesThe validate-changes flag.

Definition at line 227 of file netconf_config.h.

◆ toElement()

ElementPtr isc::netconf::CfgServer::toElement ( ) const
finaloverridevirtual

Unparse a configuration object.

Returns
a pointer to a configuration

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().

+ Here is the call graph for this function:

◆ toText()

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.

Referenced by isc::netconf::operator<<().


The documentation for this class was generated from the following files: