This is a base class for exceptions thrown from the DNS library module.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
Thrown if the NameAddTransaction encounters a general error.
NameAddTransactionError(const char *file, size_t line, const char *what)
Embodies the "life-cycle" required to carry out a DDNS Add update.
void processAddFailedHandler()
State handler for PROCESS_TRANS_FAILED_ST.
virtual void defineEvents()
Adds events defined by NameAddTransaction to the event set.
static const int ADDING_FWD_ADDRS_ST
State that attempts to add forward address records.
virtual ~NameAddTransaction()
Destructor.
void buildReplaceFwdAddressRequest()
Builds a DNS request to replace forward DNS entry for an FQDN.
virtual void verifyStates()
Validates the contents of the set of states.
static const int FQDN_NOT_IN_USE_EVT
Event sent when replace attempt to fails with address not in use.
void replacingFwdAddrsHandler()
State handler for REPLACING_FWD_ADDRS_ST.
void processAddOkHandler()
State handler for PROCESS_TRANS_OK_ST.
static const int REPLACING_FWD_ADDRS_ST
State that attempts to replace forward address records.
virtual void verifyEvents()
Validates the contents of the set of events.
void addingFwdAddrsHandler()
State handler for ADD_FWD_ADDRS_ST.
void selectingRevServerHandler()
State handler for SELECTING_REV_SERVER_ST.
void replacingRevPtrsHandler()
State handler for REPLACING_REV_PTRS_ST.
void readyHandler()
State handler for READY_ST.
NameAddTransaction(asiolink::IOServicePtr &io_service, dhcp_ddns::NameChangeRequestPtr &ncr, DdnsDomainPtr &forward_domain, DdnsDomainPtr &reverse_domain, D2CfgMgrPtr &cfg_mgr)
Constructor.
static const int FQDN_IN_USE_EVT
Event sent when an add attempt fails with address in use.
virtual void defineStates()
Adds states defined by NameAddTransaction to the state set.
void selectingFwdServerHandler()
State handler for SELECTING_FWD_SERVER_ST.
void buildReplaceRevPtrsRequest()
Builds a DNS request to replace a reverse DNS entry for an FQDN.
void buildAddFwdAddressRequest()
Builds a DNS request to add an forward DNS entry for an FQDN.
static const int REPLACING_REV_PTRS_ST
State that attempts to replace reverse PTR records.
Embodies the "life-cycle" required to carry out a DDNS update.
static const int NCT_DERIVED_STATE_MIN
Value at which custom states in a derived class should begin.
static const int NCT_DERIVED_EVENT_MIN
Value at which custom events in a derived class should begin.
boost::shared_ptr< IOService > IOServicePtr
Defines a smart pointer to an IOService instance.
boost::shared_ptr< DdnsDomain > DdnsDomainPtr
Defines a pointer for DdnsDomain instances.
boost::shared_ptr< D2CfgMgr > D2CfgMgrPtr
Defines a shared pointer to D2CfgMgr.
boost::shared_ptr< NameAddTransaction > NameAddTransactionPtr
Defines a pointer to a NameAddTransaction.
boost::shared_ptr< NameChangeRequest > NameChangeRequestPtr
Defines a pointer to a NameChangeRequest.
Defines the logger used by the top-level component of kea-lfc.
This file defines the class NameChangeTransaction.