7#ifndef PROCESS_CONFIG_CTL_INFO_H
8#define PROCESS_CONFIG_CTL_INFO_H
14#include <boost/shared_ptr.hpp>
40 void setAccessString(
const std::string& access_str,
bool test_mode =
false);
60 return (access_params_);
72 std::string& value)
const;
106 std::string access_str_;
146 : config_fetch_wait_time_(30, true) {}
158 config_fetch_wait_time_ = config_fetch_wait_time;
172 return (config_fetch_wait_time_);
198 const std::string& param_value);
static std::string redactedAccessString(const ParameterMap ¶meters)
Redact database access string.
std::map< std::string, std::string > ParameterMap
Database configuration parameter map.
Embodies configuration information used during a server's configuration process.
const ConfigDbInfoList & getConfigDatabases() const
Retrieves the list of databases.
void setConfigFetchWaitTime(const util::Optional< uint16_t > &config_fetch_wait_time)
Sets new value of the config-fetch-wait-time.
static const ConfigDbInfo & EMPTY_DB()
Fetches the not-found value returned by database list searches.
void merge(const ConfigControlInfo &other)
Merges specified configuration into this configuration.
virtual isc::data::ElementPtr toElement() const
Unparse a configuration object.
ConfigControlInfo()
Constructor.
void addConfigDatabase(const std::string &access_str)
Sets configuration database access string.
const util::Optional< uint16_t > & getConfigFetchWaitTime() const
Returns configured config-fetch-wait-time value.
bool equals(const ConfigControlInfo &other) const
Compares two objects for equality.
const ConfigDbInfo & findConfigDb(const std::string ¶m_name, const std::string ¶m_value)
Retrieves the database with the given access parameter value.
void clear()
Empties the contents of the class, including the database list.
Provides configuration information used during a server's configuration process.
std::string getAccessString() const
Retrieves the database access string.
bool equals(const ConfigDbInfo &other) const
Compares two objects for equality.
bool getParameterValue(const std::string &name, std::string &value) const
Fetch the value of a given parameter.
virtual isc::data::ElementPtr toElement() const
Unparse a configuration object.
ConfigDbInfo()
Constructor.
const db::DatabaseConnection::ParameterMap & getParameters() const
Retrieve the map of parameter values.
bool operator!=(const ConfigDbInfo &other) const
Compares two objects for inequality.
bool operator==(const ConfigDbInfo &other) const
Compares two objects for equality.
std::string redactedAccessString() const
Retrieves the database access string with password redacted.
void setAccessString(const std::string &access_str, bool test_mode=false)
Set the access string.
A template representing an optional value.
boost::shared_ptr< Element > ElementPtr
boost::shared_ptr< const ConfigControlInfo > ConstConfigControlInfoPtr
Defines a pointer to a const ConfigControlInfo.
std::vector< ConfigDbInfo > ConfigDbInfoList
boost::shared_ptr< ConfigControlInfo > ConfigControlInfoPtr
Defines a pointer to a ConfigControlInfo.
Defines the logger used by the top-level component of kea-lfc.
Abstract class for configuration Cfg_* classes.