160 bool check_only =
false);
226 virtual size_t runIO();
243 reconf_queue_flag_ = value;
252 shutdown_type_ = value;
277 return (update_mgr_);
282 return (reconf_queue_flag_);
289 return (shutdown_type_);
308 bool reconf_queue_flag_;
bool getReconfQueueFlag() const
Returns true if the queue manager should be reconfigured.
void setReconfQueueFlag(const bool value)
Sets queue reconfigure indicator to the given value.
virtual isc::data::ConstElementPtr shutdown(isc::data::ConstElementPtr args)
Initiates the D2Process shutdown process.
virtual void init()
Called after instantiation to perform initialization unique to D2.
static const char * getShutdownTypeStr(const ShutdownType &type)
Returns a text label for the given shutdown type.
boost::shared_ptr< IOService > IOServicePtr
Defines a smart pointer to an IOService instance.
D2CfgMgrPtr getD2CfgMgr()
Returns a pointer to the configuration manager.
void reconfigureCommandChannel()
(Re-)Configure the command channel.
boost::shared_ptr< D2QueueMgr > D2QueueMgrPtr
Defines a pointer for manager instances.
virtual void checkQueueStatus()
Monitors current queue manager state, takes action accordingly.
virtual ~D2Process()
Destructor.
D2Process(const char *name, const asiolink::IOServicePtr &io_service)
Constructor.
const D2UpdateMgrPtr & getD2UpdateMgr() const
Returns a reference to the update manager.
virtual bool canShutdown() const
Indicates whether or not the process can perform a shutdown.
DHCP-DDNS Application Process.
virtual void run()
Implements the process's event loop.
boost::shared_ptr< D2CfgMgr > D2CfgMgrPtr
Defines a shared pointer to D2CfgMgr.
boost::shared_ptr< const Element > ConstElementPtr
boost::shared_ptr< D2Process > D2ProcessPtr
Defines a shared pointer to D2Process.
boost::shared_ptr< D2UpdateMgr > D2UpdateMgrPtr
Defines a pointer to a D2UpdateMgr instance.
ShutdownType
Defines the shutdown types supported by D2Process.
Defines the logger used by the top-level component of kea-dhcp-ddns.
const D2QueueMgrPtr & getD2QueueMgr() const
Returns a reference to the queue manager.
ShutdownType getShutdownType() const
Returns the type of shutdown requested.
virtual void reconfigureQueueMgr()
Initializes then starts the queue manager.
This file defines the class D2QueueMgr.
virtual isc::data::ConstElementPtr configure(isc::data::ConstElementPtr config_set, bool check_only=false)
Processes the given configuration.
This file defines the class D2UpdateMgr.
Application Process Interface.
void setShutdownType(const ShutdownType &value)
Sets the shutdown type to the given value.
static const unsigned int QUEUE_RESTART_PERCENT
Defines the point at which to resume receiving requests.
virtual size_t runIO()
Allows IO processing to run until at least callback is invoked.