Kea 2.2.0
netconf_process.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_PROCESS_H
8#define NETCONF_PROCESS_H
9
10#include <netconf/netconf.h>
11#include <process/d_process.h>
12
13#include <vector>
14
15namespace isc {
16namespace netconf {
17
26public:
33 NetconfProcess(const char* name, const asiolink::IOServicePtr& io_service);
34
36 virtual ~NetconfProcess() = default;
37
45 virtual void init();
46
50 virtual void run();
51
67
83 bool check_only = false);
84
87
88private:
89
94 size_t runIO();
95
97 NetconfAgent agent_;
98};
99
101typedef boost::shared_ptr<NetconfProcess> NetconfProcessPtr;
102
103}; // namespace isc::netconf
104}; // namespace isc
105
106#endif // NETCONF_PROCESS_H
Netconf agent.
Definition: netconf.h:39
Kea Netconf Application Process.
virtual ~NetconfProcess()=default
Destructor.
NetconfCfgMgrPtr getNetconfCfgMgr()
Returns a pointer to the configuration manager.
virtual void run()
Implements the process's event loop.
virtual void init()
Initialize the Netconf process.
NetconfProcess(const char *name, const asiolink::IOServicePtr &io_service)
Constructor.
virtual isc::data::ConstElementPtr configure(isc::data::ConstElementPtr config_set, bool check_only=false)
Processes the given configuration.
virtual isc::data::ConstElementPtr shutdown(isc::data::ConstElementPtr args)
Initiates the process's shutdown process.
Application Process Interface.
Definition: d_process.h:81
boost::shared_ptr< const Element > ConstElementPtr
Definition: data.h:27
boost::shared_ptr< NetconfProcess > NetconfProcessPtr
Defines a shared pointer to NetconfProcess.
boost::shared_ptr< NetconfCfgMgr > NetconfCfgMgrPtr
Defines a shared pointer to NetconfCfgMgr.
Defines the logger used by the top-level component of kea-lfc.