Kea: netconf_controller.h Source File

| Kea 2.2.0

netconf_controller.h
Go to the documentation of this file.
1// Copyright (C) 2018-2021 Internet Systems Consortium, Inc. ("ISC")
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7#ifndef NETCONF_CONTROLLER_H
8#define NETCONF_CONTROLLER_H
9
10#include <netconf/netconf_process.h>
11#include <process/d_controller.h>
12
13namespace isc {
14namespace netconf {
15
21 class NetconfController : public process::DControllerBase {
22public:
23
31 static process::DControllerBasePtr& instance();
32
34 virtual ~NetconfController() = default;
35
37 NetconfProcessPtr getNetconfProcess();
38
41 static const char* netconf_app_name_;
42
45 static const char* netconf_bin_name_;
46
51 isc::data::ConstElementPtr
52 parseFile(const std::string& name);
53
59 virtual void processSignal(int signum);
60
61private:
62
72 virtual process::DProcessBase* createProcess();
73
76 NetconfController();
77};
78
79// @Defines a shared pointer to NetconfController
80 typedef boost::shared_ptr<NetconfController> NetconfControllerPtr;
81
82} // namespace isc::netconf
83} // namespace isc
84
85#endif // NETCONF_CONTROLLER_H
isc::netconf::NetconfController
Process Controller for Netconf Process.
Definition: netconf_controller.h:21
isc::netconf::NetconfController::instance
static process::DControllerBasePtr & instance()
Static singleton instance method.
Definition: netconf_controller.cc:29
isc::netconf::NetconfController::getNetconfProcess
NetconfProcessPtr getNetconfProcess()
Returns pointer to an instance of the underlying process object.
Definition: netconf_controller.cc:67
isc::netconf::NetconfController::netconf_app_name_
static const char * netconf_app_name_
Defines the application name, this is passed into base class and appears in log statements.
Definition: netconf_controller.h:41
isc::netconf::NetconfController::~NetconfController
virtual ~NetconfController()=default
Destructor.
isc::netconf::NetconfController::netconf_bin_name_
static const char * netconf_bin_name_
Defines the executable name.
Definition: netconf_controller.h:45
isc::netconf::NetconfController::processSignal
virtual void processSignal(int signum)
Redefined application-level signal processing method.
Definition: netconf_controller.cc:41
isc::netconf::NetconfController::parseFile
isc::data::ConstElementPtr parseFile(const std::string &name)
Parses the configuration file using Netconf::ParserContext (bison)
Definition: netconf_controller.cc:57
isc::process::DControllerBase
Application Controller.
Definition: d_controller.h:104
isc::process::DProcessBase
Application Process Interface.
Definition: d_process.h:81
d_controller.h
isc::data::ConstElementPtr
boost::shared_ptr< const Element > ConstElementPtr
Definition: data.h:27
isc::netconf::NetconfProcessPtr
boost::shared_ptr< NetconfProcess > NetconfProcessPtr
Defines a shared pointer to NetconfProcess.
Definition: netconf_process.h:101
isc::netconf::NetconfControllerPtr
boost::shared_ptr< NetconfController > NetconfControllerPtr
Definition: netconf_controller.h:80
isc::process::DControllerBasePtr
boost::shared_ptr< DControllerBase > DControllerBasePtr
Definition: d_controller.h:78
isc
Defines the logger used by the top-level component of kea-lfc.
Definition: agent_parser.cc:143
netconf_process.h