Kea 2.7.6
|
DHCP-DDNS Configuration Context. More...
#include <d2_cfg_mgr.h>
Public Member Functions | |
D2CfgContext () | |
Constructor. | |
virtual | ~D2CfgContext () |
Destructor. | |
virtual process::ConfigPtr | clone () |
Creates a clone of this context object. | |
D2ParamsPtr & | getD2Params () |
Fetches a reference to the D2Params. | |
DdnsDomainListMgrPtr | getForwardMgr () |
Fetches the forward DNS domain list manager. | |
isc::hooks::HooksConfig & | getHooksConfig () |
Returns non-const reference to configured hooks libraries. | |
const isc::hooks::HooksConfig & | getHooksConfig () const |
Returns const reference to configured hooks libraries. | |
isc::config::HttpCommandConfigPtr | getHttpControlSocketInfo () const |
Returns information about HTTP/HTTPS control socket. | |
TSIGKeyInfoMapPtr | getKeys () |
Fetches the map of TSIG keys. | |
DdnsDomainListMgrPtr | getReverseMgr () |
Fetches the reverse DNS domain list manager. | |
const isc::data::ConstElementPtr | getUnixControlSocketInfo () const |
Returns information about UNIX control socket. | |
void | setForwardMgr (DdnsDomainListMgrPtr forward_mgr) |
Sets the forward domain list manager. | |
void | setHttpControlSocketInfo (const isc::config::HttpCommandConfigPtr &control_socket) |
Sets information about the HTTP/HTTPS control socket. | |
void | setKeys (const TSIGKeyInfoMapPtr &keys) |
Sets the map of TSIG keys. | |
void | setReverseMgr (DdnsDomainListMgrPtr reverse_mgr) |
Sets the reverse domain list manager. | |
void | setUnixControlSocketInfo (const isc::data::ConstElementPtr &control_socket) |
Sets information about the UNIX control socket. | |
virtual isc::data::ElementPtr | toElement () const |
Unparse a configuration object. | |
Public Member Functions inherited from isc::process::ConfigBase | |
const process::LoggingInfoStorage & | getLoggingInfo () const |
Returns logging specific configuration. | |
void | addLoggingInfo (const process::LoggingInfo &logging_info) |
Sets logging specific configuration. | |
void | applyLoggingCfg () const |
Apply logging configuration to log4cplus. | |
bool | equals (const ConfigBase &other) const |
Compares two configuration. | |
virtual void | merge (ConfigBase &other) |
Merges specified configuration into this configuration. | |
process::ConstConfigControlInfoPtr | getConfigControlInfo () const |
Fetches a read-only copy of the configuration control information. | |
void | setConfigControlInfo (const process::ConfigControlInfoPtr &config_ctl_info) |
Set the configuration control information. | |
void | setServerTag (const util::Optional< std::string > &server_tag) |
Sets the server's logical name. | |
util::Optional< std::string > | getServerTag () const |
Returns the server's logical name. | |
boost::posix_time::ptime | getLastCommitTime () const |
Returns the last commit timestamp. | |
void | setLastCommitTime (const boost::posix_time::ptime &last_commit_time) |
Sets the last commit timestamp. | |
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. | |
Protected Member Functions | |
D2CfgContext (const D2CfgContext &rhs) | |
Copy constructor for use by derivations in clone(). | |
Protected Member Functions inherited from isc::process::ConfigBase | |
void | copy (ConfigBase &new_config) const |
Copies the current configuration to a new configuration. | |
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) | |
DHCP-DDNS Configuration Context.
Implements the storage container for configuration context. It provides a single enclosure for the storage of configuration parameters and any other DHCP-DDNS specific information that needs to be accessible during configuration parsing as well as to the application as a whole. It is derived from the context base class, ConfigBase.
Definition at line 35 of file d2_cfg_mgr.h.
isc::d2::D2CfgContext::D2CfgContext | ( | ) |
|
virtual |
Destructor.
Definition at line 63 of file d2_cfg_mgr.cc.
|
protected |
Copy constructor for use by derivations in clone().
Definition at line 42 of file d2_cfg_mgr.cc.
References if().
|
inlinevirtual |
Creates a clone of this context object.
Definition at line 46 of file d2_cfg_mgr.h.
References D2CfgContext().
|
inline |
Fetches a reference to the D2Params.
Definition at line 51 of file d2_cfg_mgr.h.
|
inline |
Fetches the forward DNS domain list manager.
Definition at line 58 of file d2_cfg_mgr.h.
|
inline |
Returns non-const reference to configured hooks libraries.
Definition at line 128 of file d2_cfg_mgr.h.
|
inline |
Returns const reference to configured hooks libraries.
Definition at line 135 of file d2_cfg_mgr.h.
|
inline |
Returns information about HTTP/HTTPS control socket.
Definition at line 114 of file d2_cfg_mgr.h.
|
inline |
Fetches the map of TSIG keys.
Definition at line 86 of file d2_cfg_mgr.h.
|
inline |
Fetches the reverse DNS domain list manager.
Definition at line 72 of file d2_cfg_mgr.h.
|
inline |
Returns information about UNIX control socket.
Definition at line 100 of file d2_cfg_mgr.h.
|
inline |
Sets the forward domain list manager.
forward_mgr | pointer to the new forward manager |
Definition at line 65 of file d2_cfg_mgr.h.
|
inline |
Sets information about the HTTP/HTTPS control socket.
control_socket | HTTP/HTTPS control socket config |
Definition at line 121 of file d2_cfg_mgr.h.
|
inline |
Sets the map of TSIG keys.
keys | pointer to the new TSIG key map |
Definition at line 93 of file d2_cfg_mgr.h.
|
inline |
Sets the reverse domain list manager.
reverse_mgr | pointer to the new reverse manager |
Definition at line 79 of file d2_cfg_mgr.h.
|
inline |
Sets information about the UNIX control socket.
control_socket | UNIX control socket config |
Definition at line 107 of file d2_cfg_mgr.h.
|
virtual |
Unparse a configuration object.
Reimplemented from isc::process::ConfigBase.
Definition at line 67 of file d2_cfg_mgr.cc.
References isc::data::UserContext::contextToElement(), isc::data::Element::create(), isc::data::Element::createList(), isc::data::Element::createMap(), isc::data::isNull(), isc::dhcp_ddns::ncrFormatToString(), isc::dhcp_ddns::ncrProtocolToString(), isc::data::UserContext::toElement(), isc::hooks::HooksConfig::toElement(), isc::process::ConfigBase::toElement(), and isc::asiolink::IOAddress::toText().