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.
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.
Thrown if the NameRemoveTransaction encounters a general error.
NameRemoveTransactionError(const char *file, size_t line, const char *what)
Embodies the "life-cycle" required to carry out a DDNS Remove update.
virtual void verifyStates()
Validates the contents of the set of states.
virtual void defineEvents()
Adds events defined by NameRemoveTransaction to the event set.
void processRemoveOkHandler()
State handler for PROCESS_TRANS_OK_ST.
void readyHandler()
State handler for READY_ST.
void buildRemoveRevPtrsRequest()
Builds a DNS request to remove a reverse DNS entry for a FQDN.
virtual void verifyEvents()
Validates the contents of the set of events.
void selectingRevServerHandler()
State handler for SELECTING_REV_SERVER_ST.
void removingFwdAddrsHandler()
State handler for REMOVING_FWD_ADDRS_ST.
static const int REMOVING_REV_PTRS_ST
State that attempts to remove reverse PTR records.
virtual void defineStates()
Adds states defined by NameRemoveTransaction to the state set.
void removingRevPtrsHandler()
State handler for REMOVING_REV_PTRS_ST.
NameRemoveTransaction(asiolink::IOServicePtr &io_service, dhcp_ddns::NameChangeRequestPtr &ncr, DdnsDomainPtr &forward_domain, DdnsDomainPtr &reverse_domain, D2CfgMgrPtr &cfg_mgr)
Event sent when replace attempt to fails with address not in use.
void removingFwdRRsHandler()
State handler for REMOVING_FWD_RRS_ST.
static const int REMOVING_FWD_RRS_ST
State that attempts to remove any other forward RRs for the DHCID.
void selectingFwdServerHandler()
State handler for SELECTING_FWD_SERVER_ST.
void buildRemoveFwdAddressRequest()
Builds a DNS request to remove a forward DNS address for a FQDN.
void buildRemoveFwdRRsRequest()
Builds a DNS request to remove all forward DNS RRs for a FQDN.
virtual ~NameRemoveTransaction()
Destructor.
void processRemoveFailedHandler()
State handler for PROCESS_TRANS_FAILED_ST.
static const int REMOVING_FWD_ADDRS_ST
State that attempts to remove specific forward address record.
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< NameRemoveTransaction > NameRemoveTransactionPtr
Defines a pointer to a NameRemoveTransaction.
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.