Kea
1.9.9-git
|
Represents a DNS domain that is may be updated dynamically. More...
#include <d2_config.h>
Public Member Functions | |
DdnsDomain (const std::string &name, DnsServerInfoStoragePtr servers, const TSIGKeyInfoPtr &tsig_key_info=TSIGKeyInfoPtr()) | |
Constructor. More... | |
virtual | ~DdnsDomain () |
Destructor. More... | |
const std::string | getKeyName () const |
Convenience method which returns the domain's TSIG key name. More... | |
const std::string | getName () const |
Getter which returns the domain's name. More... | |
const DnsServerInfoStoragePtr & | getServers () |
Getter which returns the domain's list of servers. More... | |
const TSIGKeyInfoPtr & | getTSIGKeyInfo () |
Getter which returns the domain's TSIGKey info. More... | |
virtual isc::data::ElementPtr | toElement () const |
Unparse a configuration object. 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... | |
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... | |
Represents a DNS domain that is may be updated dynamically.
This class specifies a DNS domain and the list of DNS servers that support it. It's primary use is to map a domain to the DNS server(s) responsible for it.
Definition at line 530 of file d2_config.h.
isc::d2::DdnsDomain::DdnsDomain | ( | const std::string & | name, |
DnsServerInfoStoragePtr | servers, | ||
const TSIGKeyInfoPtr & | tsig_key_info = TSIGKeyInfoPtr() |
||
) |
Constructor.
name | is the domain name of the domain. |
servers | is the list of server(s) supporting this domain. |
tsig_key_info | pointer to the TSIGKeyInfo for the domain's key It defaults to an empty pointer, signifying the domain has no key. |
Definition at line 244 of file d2_config.cc.
|
virtual |
Destructor.
Definition at line 251 of file d2_config.cc.
const std::string isc::d2::DdnsDomain::getKeyName | ( | ) | const |
Convenience method which returns the domain's TSIG key name.
Definition at line 255 of file d2_config.cc.
|
inline |
Getter which returns the domain's name.
Definition at line 548 of file d2_config.h.
|
inline |
Getter which returns the domain's list of servers.
Definition at line 561 of file d2_config.h.
|
inline |
Getter which returns the domain's TSIGKey info.
Definition at line 569 of file d2_config.h.
|
virtual |
Unparse a configuration object.
Implements isc::data::CfgToElement.
Definition at line 264 of file d2_config.cc.
References isc::data::UserContext::contextToElement().