Kea 2.5.7
simple_remove_without_dhcid.h
Go to the documentation of this file.
1// Copyright (C) 2023 Internet Systems Consortium, Inc. ("ISC")
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6//
7#ifndef SIMPLE_REMOVE_WITHOUT_DHCID_H
8#define SIMPLE_REMOVE_WITHOUT_DHCID_H
9
11
12#include <d2srv/nc_trans.h>
13
14namespace isc {
15namespace d2 {
16
19public:
20 SimpleRemoveWithoutDHCIDTransactionError(const char* file, size_t line,
21 const char* what) :
22 isc::Exception(file, line, what) { };
23};
24
50public:
51
53
55
59
61
63
64
79 DdnsDomainPtr& forward_domain,
80 DdnsDomainPtr& reverse_domain,
81 D2CfgMgrPtr& cfg_mgr);
82
85
86protected:
93 virtual void defineEvents();
94
102 virtual void verifyEvents();
103
110 virtual void defineStates();
111
119 virtual void verifyStates();
120
141 void readyHandler();
142
165
189
234
276
292
311
326
341};
342
344typedef boost::shared_ptr<SimpleRemoveWithoutDHCIDTransaction> SimpleRemoveWithoutDHCIDTransactionPtr;
345
346
347} // namespace isc::d2
348} // namespace isc
349#endif
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.
Definition: nc_trans.h:77
static const int NCT_DERIVED_STATE_MIN
Value at which custom states in a derived class should begin.
Definition: nc_trans.h:108
Thrown if the SimpleRemoveWithoutDHCIDTransaction encounters a general error.
SimpleRemoveWithoutDHCIDTransactionError(const char *file, size_t line, const char *what)
Embodies the "life-cycle" required to carry out a DDNS Remove update without removing any matching DH...
void processRemoveOkHandler()
State handler for PROCESS_TRANS_OK_ST.
static const int REMOVING_FWD_RRS_ST
State that attempts to remove FQDN/IP RR for an FQDN.
void removingFwdRRsHandler()
State handler for REMOVING_FWD_RRS_ST.
virtual void verifyEvents()
Validates the contents of the set of events.
static const int REMOVING_REV_PTRS_ST
State that attempts to remove reverse PTR records.
void selectingRevServerHandler()
State handler for SELECTING_REV_SERVER_ST.
virtual void defineEvents()
Adds events defined by SimpleRemoveWithoutDHCIDTransaction to the event set.
void processRemoveFailedHandler()
State handler for PROCESS_TRANS_FAILED_ST.
void buildRemoveRevPtrsRequest()
Builds a DNS request to remove a reverse DNS entry for a FQDN.
void buildRemoveFwdRRsRequest()
Builds a DNS request to remove forward DNS RR for a FQDN.
void selectingFwdServerHandler()
State handler for SELECTING_FWD_SERVER_ST.
virtual void verifyStates()
Validates the contents of the set of states.
virtual void defineStates()
Adds states defined by SimpleRemoveWithoutDHCIDTransaction to the state set.
void removingRevPtrsHandler()
State handler for REMOVING_REV_PTRS_ST.
boost::shared_ptr< DdnsDomain > DdnsDomainPtr
Defines a pointer for DdnsDomain instances.
Definition: d2_config.h:610
boost::shared_ptr< SimpleRemoveWithoutDHCIDTransaction > SimpleRemoveWithoutDHCIDTransactionPtr
Defines a pointer to a SimpleRemoveWithoutDHCIDTransaction.
boost::shared_ptr< D2CfgMgr > D2CfgMgrPtr
Defines a shared pointer to D2CfgMgr.
Definition: d2_cfg_mgr.h:334
boost::shared_ptr< NameChangeRequest > NameChangeRequestPtr
Defines a pointer to a NameChangeRequest.
Definition: ncr_msg.h:242
Defines the logger used by the top-level component of kea-lfc.
This file defines the class NameChangeTransaction.