20 const char* NetconfController::netconf_app_name_ =
"Netconf";
23 const char* NetconfController::netconf_bin_name_ =
"kea-netconf";
26 NetconfController::instance() {
29 if (!getController()) {
31 setController(controller_ptr);
34 return (getController());
38 NetconfController::processSignal(
int signum) {
39 if (signum == SIGHUP) {
47 NetconfController::createProcess() {
54 NetconfController::parseFile(
const std::string& name) {
56 return (parser.
parseFile(name, ParserContext::PARSER_NETCONF));
59 NetconfController::NetconfController()
68 return (boost::dynamic_pointer_cast<NetconfProcess>(
getProcess()));
boost::shared_ptr< DControllerBase > DControllerBasePtr
#define LOG_WARN(LOGGER, MESSAGE)
Macro to conveniently test warn output and log it.
virtual void processSignal(int signum)
Application-level signal processing method.
DProcessBasePtr getProcess()
Fetches the current process.
isc::log::Logger dctl_logger("dctl")
Defines the logger used within libkea-process library.
isc::data::ElementPtr parseFile(const std::string &filename, ParserType parser_type)
Run the parser on the file specified.
boost::shared_ptr< const Element > ConstElementPtr
Kea Netconf Application Process.
Process Controller for Netconf Process.
Defines the logger used by the top-level component of kea-dhcp-ddns.
Parser context is a wrapper around flex/bison instances dedicated to Netconf-agent config file parser...
boost::shared_ptr< NetconfProcess > NetconfProcessPtr
Defines a shared pointer to NetconfProcess.
Application Process Interface.
NetconfProcessPtr getNetconfProcess()
Returns pointer to an instance of the underlying process object.
virtual ~NetconfController()
Destructor.