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