Kea
1.9.9-git
|
DHCP-DDNS Configuration Context. More...
#include <d2_cfg_mgr.h>
Public Member Functions | |
D2CfgContext () | |
Constructor. More... | |
virtual | ~D2CfgContext () |
Destructor. More... | |
virtual process::ConfigPtr | clone () |
Creates a clone of this context object. More... | |
const isc::data::ConstElementPtr | getControlSocketInfo () const |
Returns information about control socket. More... | |
D2ParamsPtr & | getD2Params () |
Fetches a reference to the D2Params. More... | |
DdnsDomainListMgrPtr | getForwardMgr () |
Fetches the forward DNS domain list manager. More... | |
isc::hooks::HooksConfig & | getHooksConfig () |
Returns non-const reference to configured hooks libraries. More... | |
const isc::hooks::HooksConfig & | getHooksConfig () const |
Returns const reference to configured hooks libraries. More... | |
TSIGKeyInfoMapPtr | getKeys () |
Fetches the map of TSIG keys. More... | |
DdnsDomainListMgrPtr | getReverseMgr () |
Fetches the reverse DNS domain list manager. More... | |
void | setControlSocketInfo (const isc::data::ConstElementPtr &control_socket) |
Sets information about the control socket. More... | |
void | setForwardMgr (DdnsDomainListMgrPtr forward_mgr) |
Sets the forward domain list manager. More... | |
void | setKeys (const TSIGKeyInfoMapPtr &keys) |
Sets the map of TSIG keys. More... | |
void | setReverseMgr (DdnsDomainListMgrPtr reverse_mgr) |
Sets the reverse domain list manager. More... | |
virtual isc::data::ElementPtr | toElement () const |
Unparse a configuration object. More... | |
Public Member Functions inherited from isc::process::ConfigBase | |
const process::LoggingInfoStorage & | getLoggingInfo () const |
Returns logging specific configuration. More... | |
void | addLoggingInfo (const process::LoggingInfo &logging_info) |
Sets logging specific configuration. More... | |
void | applyLoggingCfg () const |
Apply logging configuration to log4cplus. More... | |
bool | equals (const ConfigBase &other) const |
Compares two configuration. More... | |
virtual void | merge (ConfigBase &other) |
Merges specified configuration into this configuration. More... | |
process::ConstConfigControlInfoPtr | getConfigControlInfo () const |
Fetches a read-only copy of the configuration control information. More... | |
void | setConfigControlInfo (const process::ConfigControlInfoPtr &config_ctl_info) |
Set the configuration control information. More... | |
void | setServerTag (const util::Optional< std::string > &server_tag) |
Sets the server's logical name. More... | |
util::Optional< std::string > | getServerTag () const |
Returns the server's logical name. More... | |
boost::posix_time::ptime | getLastCommitTime () const |
Returns the last commit timestamp. More... | |
void | setLastCommitTime (const boost::posix_time::ptime &last_commit_time) |
Sets the last commit timestamp. More... | |
Public Member Functions inherited from isc::data::UserContext | |
void | contextToElement (data::ElementPtr map) const |
Merge unparse a user_context object. More... | |
data::ConstElementPtr | getContext () const |
Returns const pointer to the user context. More... | |
void | setContext (const data::ConstElementPtr &ctx) |
Sets user context. More... | |
Public Member Functions inherited from isc::data::CfgToElement | |
virtual | ~CfgToElement () |
Destructor. More... | |
Protected Member Functions | |
D2CfgContext (const D2CfgContext &rhs) | |
Copy constructor for use by derivations in clone(). More... | |
Protected Member Functions inherited from isc::process::ConfigBase | |
void | copy (ConfigBase &new_config) const |
Copies the current configuration to a new configuration. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from isc::data::UserContext | |
static data::ElementPtr | toElement (data::ConstElementPtr map) |
Copy an Element map. More... | |
Protected Attributes inherited from isc::data::UserContext | |
data::ConstElementPtr | user_context_ |
Pointer to the user context (may be NULL) More... | |
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 34 of file d2_cfg_mgr.h.
isc::d2::D2CfgContext::D2CfgContext | ( | ) |
|
virtual |
Destructor.
Definition at line 60 of file d2_cfg_mgr.cc.
|
protected |
Copy constructor for use by derivations in clone().
Definition at line 41 of file d2_cfg_mgr.cc.
|
inlinevirtual |
Creates a clone of this context object.
Definition at line 45 of file d2_cfg_mgr.h.
References D2CfgContext().
|
inline |
Returns information about control socket.
Definition at line 96 of file d2_cfg_mgr.h.
|
inline |
Fetches a reference to the D2Params.
Definition at line 50 of file d2_cfg_mgr.h.
|
inline |
Fetches the forward DNS domain list manager.
Definition at line 57 of file d2_cfg_mgr.h.
|
inline |
Returns non-const reference to configured hooks libraries.
Definition at line 109 of file d2_cfg_mgr.h.
|
inline |
Returns const reference to configured hooks libraries.
Definition at line 116 of file d2_cfg_mgr.h.
|
inline |
Fetches the map of TSIG keys.
Definition at line 83 of file d2_cfg_mgr.h.
|
inline |
Fetches the reverse DNS domain list manager.
Definition at line 70 of file d2_cfg_mgr.h.
|
inline |
Sets information about the control socket.
control_socket | Element that holds control-socket map |
Definition at line 102 of file d2_cfg_mgr.h.
|
inline |
Sets the forward domain list manager.
forward_mgr | pointer to the new forward manager |
Definition at line 63 of file d2_cfg_mgr.h.
|
inline |
Sets the map of TSIG keys.
keys | pointer to the new TSIG key map |
Definition at line 90 of file d2_cfg_mgr.h.
|
inline |
Sets the reverse domain list manager.
reverse_mgr | pointer to the new reverse manager |
Definition at line 76 of file d2_cfg_mgr.h.
|
virtual |
Unparse a configuration object.
Reimplemented from isc::process::ConfigBase.
Definition at line 64 of file d2_cfg_mgr.cc.
References isc::data::UserContext::contextToElement(), isc::data::isNull(), isc::dhcp_ddns::ncrFormatToString(), isc::dhcp_ddns::ncrProtocolToString(), isc::hooks::HooksConfig::toElement(), and isc::asiolink::IOAddress::toText().