 |
Kea
1.5.0
|
Go to the documentation of this file.
7 #ifndef CTRL_AGENT_CFG_MGR_H
8 #define CTRL_AGENT_CFG_MGR_H
13 #include <boost/pointer_cast.hpp>
20 class CtrlAgentCfgContext;
68 const std::string& service);
105 return (hooks_config_);
112 return (hooks_config_);
142 std::map<std::string, isc::data::ConstElementPtr> ctrl_sockets_;
145 std::string http_host_;
172 return (boost::dynamic_pointer_cast<CtrlAgentCfgContext>(
getContext()));
213 #endif // CTRL_AGENT_CFG_MGR_H
Base class for all configurations.
virtual ~CtrlAgentCfgMgr()
Destructor.
std::string getControlSocketInfoSummary() const
Returns socket configuration summary in a textual format.
virtual process::ConfigPtr createNewContext()
Creates a new, blank CtrlAgentCfgContext context.
virtual std::string getConfigSummary(const uint32_t selection)
Returns configuration summary in the textual format.
uint16_t getHttpPort() const
Returns the TCP post the HTTP server will listen on.
virtual process::ConfigPtr clone()
Creates a clone of this context object.
CtrlAgentCfgMgr()
Constructor.
virtual isc::data::ElementPtr toElement() const
Unparse a configuration object.
CtrlAgentCfgContextPtr getCtrlAgentCfgContext()
Convenience method that returns the Control Agent configuration context.
boost::shared_ptr< CtrlAgentCfgMgr > CtrlAgentCfgMgrPtr
Defines a shared pointer to CtrlAgentCfgMgr.
isc::data::ConstElementPtr getControlSocketInfo(const std::string &service) const
Returns information about control socket.
boost::shared_ptr< ConfigBase > ConfigPtr
Non-const pointer to the SrvConfig.
Defines the logger used by the top-level component of kea-dhcp-ddns.
std::string getHttpHost() const
Returns http-host parameter.
Control Agent Configuration Context.
Wrapper class that holds hooks libraries configuration.
isc::hooks::HooksConfig & getHooksConfig()
Returns non-const reference to configured hooks libraries.
CtrlAgentCfgContext()
Default constructor.
void setHttpHost(const std::string &host)
Sets http-host parameter.
void setControlSocketInfo(const isc::data::ConstElementPtr &control_socket, const std::string &service)
Sets information about the control socket.
boost::shared_ptr< CtrlAgentCfgContext > CtrlAgentCfgContextPtr
Pointer to a configuration context.
const isc::hooks::HooksConfig & getHooksConfig() const
Returns const reference to configured hooks libraries.
virtual isc::data::ConstElementPtr parse(isc::data::ConstElementPtr config, bool check_only)
Parses configuration of the Control Agent.
ConfigPtr & getContext()
Fetches the configuration context.
boost::shared_ptr< Element > ElementPtr
boost::shared_ptr< const Element > ConstElementPtr
void setHttpPort(const uint16_t port)
Sets http port.
Ctrl Agent Configuration Manager.