BIND 10 #2956: DHCP-DDNS: Create server controller class
BIND 10 Development
do-not-reply at isc.org
Sun Jun 2 12:33:52 UTC 2013
#2956: DHCP-DDNS: Create server controller class
-------------------------------------+-------------------------------------
Reporter: stephen | Owner: tmark
Type: enhancement | Status:
Priority: medium | assigned
Component: dhcp | Milestone:
Keywords: | Sprint-DHCP-20130606
Sensitive: 0 | Resolution:
Sub-Project: DHCP | CVSS Scoring:
Estimated Difficulty: 0 | Defect Severity: N/A
Total Hours: 0 | Feature Depending on Ticket:
| Add Hours to Ticket: 0
| Internal?: 0
-------------------------------------+-------------------------------------
Comment (by tmark):
I've created the initial, implementation DHCP-DDNS service controller
class, D2Controller. In the original design this was referred to as
!CtrlDhcpDdnsSrv.
It plays the essentially the same role as designed: It is the
"controlling"
object which creates the runtime environment for and manages the lifecycle
of the application processr,D2Process (fromerly known as !DhcpDdnsSrv).
Unlike the DHCP server top level classes where the controller derives from
the server, D2Controller derives from a new abstract class,
DControllerBase. This abstraction provides all of the services necessary
to manage an application process class derived from DProcess. These
services include:
Command line argument handling
Process instantiation and initialization
Support for stand-alone execution
Support for integrated operation as a BIND10 module (session management
and
event handling)
Process event loop invocation and shutdown
The implementation is sufficient to run as a BIND10 module and supports
shutdown command.
New files added:
d_controller.h
d_controller.cc
d2_controller.h
d2_controller.cc
tests/d_test_stubs.h
tests/d_test_stubs.cc
tests/d_controller_unittests.cc
tests/d2_controller_unittests.cc
The following class diagram illustrates the lay of the land (this will be
incorporated into
design/implementation documentation)
[[Image(d2classes_diagram.svg)]]
Recommended !ChangeLog entry:
6xx. [func] tmark
Created the initial implementation of DHCP-DDNS service controller
class,
D2Controller, and the abstract class from which it
derives,DControllerBase. D2Controller manages the lifecycle and
BIND10 integration of the DHCP-DDNS
application process, D2Process.
(Trac #2956, git TBD)
--
Ticket URL: <http://bind10.isc.org/ticket/2956#comment:3>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list