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