42 if (signum == SIGHUP) {
50NetconfController::createProcess() {
62NetconfController::NetconfController()
68 return (boost::dynamic_pointer_cast<NetconfProcess>(
getProcess()));
Process Controller for Netconf Process.
static process::DControllerBasePtr & instance()
Static singleton instance method.
NetconfProcessPtr getNetconfProcess()
Returns pointer to an instance of the underlying process object.
static const char * netconf_app_name_
Defines the application name, this is passed into base class and appears in log statements.
void processSignal(int signum) override final
Redefined application-level signal processing method.
static const char * netconf_bin_name_
Defines the executable name.
isc::data::ConstElementPtr parseFile(const std::string &name) override final
Parses the configuration file using Netconf::ParserContext (bison)
Kea Netconf Application Process.
Parser context is a wrapper around flex/bison instances dedicated to Netconf-agent config file parser...
isc::data::ElementPtr parseFile(const std::string &filename, ParserType parser_type)
Run the parser on the file specified.
@ PARSER_NETCONF
This parser will expect the content as Netconf config wrapped in a map (that's the regular config fil...
asiolink::IOServicePtr & getIOService()
Getter for fetching the controller's IOService.
static DControllerBasePtr & getController()
Static getter which returns the singleton instance.
virtual void processSignal(int signum)
Application-level signal processing method.
static void setController(const DControllerBasePtr &controller)
Static setter which sets the singleton instance.
DProcessBasePtr getProcess()
Fetches the current process.
std::string getAppName() const
Fetches the name of the application under control.
Application Process Interface.
#define LOG_WARN(LOGGER, MESSAGE)
Macro to conveniently test warn output and log it.
boost::shared_ptr< const Element > ConstElementPtr
boost::shared_ptr< NetconfProcess > NetconfProcessPtr
Defines a shared pointer to NetconfProcess.
isc::log::Logger dctl_logger("dctl")
Defines the logger used within libkea-process library.
boost::shared_ptr< DControllerBase > DControllerBasePtr
const isc::log::MessageID DCTL_UNSUPPORTED_SIGNAL
Defines the logger used by the top-level component of kea-lfc.