Kea 2.7.6
ca_controller.h
Go to the documentation of this file.
1// Copyright (C) 2016-2017 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 CTRL_AGENT_CONTROLLER_H
8#define CTRL_AGENT_CONTROLLER_H
9
10#include <agent/ca_process.h>
12
13namespace isc {
14namespace agent {
15
22public:
23
32
34 virtual ~CtrlAgentController();
35
38
41 static const char* agent_app_name_;
42
45 static const char* agent_bin_name_;
46
52 parseFile(const std::string& name);
53
55 void registerCommands();
56
58 void deregisterCommands();
59
60private:
61
72 virtual process::DProcessBase* createProcess();
73
77};
78
79// @Defines a shared pointer to CtrlAgentController
80typedef boost::shared_ptr<CtrlAgentController> CtrlAgentControllerPtr;
81
82} // namespace isc::agent
83} // namespace isc
84
85#endif // CTRL_AGENT_CONTROLLER_H
Process Controller for Control Agent Process.
static process::DControllerBasePtr & instance()
Static singleton instance method.
void deregisterCommands()
Deregister commands.
isc::data::ConstElementPtr parseFile(const std::string &name)
Parses the configuration file using Agent::ParserContext (bison)
static const char * agent_bin_name_
Defines the executable name.
void registerCommands()
Register commands.
virtual ~CtrlAgentController()
Destructor.
CtrlAgentProcessPtr getCtrlAgentProcess()
Returns pointer to an instance of the underlying process object.
static const char * agent_app_name_
Defines the application name, this is passed into base class and appears in log statements.
Application Controller.
Application Process Interface.
Definition d_process.h:75
boost::shared_ptr< CtrlAgentProcess > CtrlAgentProcessPtr
Defines a shared pointer to CtrlAgentProcess.
Definition ca_process.h:150
boost::shared_ptr< CtrlAgentController > CtrlAgentControllerPtr
boost::shared_ptr< const Element > ConstElementPtr
Definition data.h:29
boost::shared_ptr< DControllerBase > DControllerBasePtr
Defines the logger used by the top-level component of kea-lfc.