Kea  1.9.9-git
hooked_command_mgr.h
Go to the documentation of this file.
1 // Copyright (C) 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 HOOKED_COMMAND_MGR_H
8 #define HOOKED_COMMAND_MGR_H
9 
10 #include <cc/data.h>
12 
13 namespace isc {
14 namespace config {
15 
40 public:
41 
46 
47 protected:
48 
64  bool
65  delegateCommandToHookLibrary(const std::string& cmd_name,
66  const isc::data::ConstElementPtr& params,
67  const isc::data::ConstElementPtr& original_cmd,
68  isc::data::ElementPtr& answer);
69 
82  handleCommand(const std::string& cmd_name,
83  const isc::data::ConstElementPtr& params,
84  const isc::data::ConstElementPtr& original_cmd);
85 
86 };
87 
88 } // end of namespace isc::config
89 } // end of namespace isc
90 
91 #endif
virtual isc::data::ConstElementPtr handleCommand(const std::string &cmd_name, const isc::data::ConstElementPtr &params, const isc::data::ConstElementPtr &original_cmd)
Handles the command having a given name and arguments.
boost::shared_ptr< Element > ElementPtr
Definition: data.h:20
Command Manager which can delegate commands to a hook library.
boost::shared_ptr< const Element > ConstElementPtr
Definition: data.h:23
Commands Manager, responsible for processing external commands.
bool delegateCommandToHookLibrary(const std::string &cmd_name, const isc::data::ConstElementPtr &params, const isc::data::ConstElementPtr &original_cmd, isc::data::ElementPtr &answer)
Handles the command within the hooks libraries.
Defines the logger used by the top-level component of kea-dhcp-ddns.