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_);
181 void addConfigDatabase(
const std::string& access_str);
197 const ConfigDbInfo& findConfigDb(
const std::string& param_name,
198 const std::string& param_value);
235 ConfigDbInfoList db_infos_;
247 #endif // PROCESS_CONFIG_CTL_INFO_H std::string getAccessString() const
Retrieves the database access string.
const util::Optional< uint16_t > & getConfigFetchWaitTime() const
Returns configured config-fetch-wait-time value.
std::string redactedAccessString() const
Retrieves the database access string with password redacted.
void setConfigFetchWaitTime(const util::Optional< uint16_t > &config_fetch_wait_time)
Sets new value of the config-fetch-wait-time.
virtual isc::data::ElementPtr toElement() const
Unparse a configuration object.
Embodies configuration information used during a server's configuration process.
boost::shared_ptr< Element > ElementPtr
bool getParameterValue(const std::string &name, std::string &value) const
Fetch the value of a given parameter.
bool equals(const ConfigDbInfo &other) const
Compares two objects for equality.
ConfigDbInfo()
Constructor.
Abstract class for configuration Cfg_* classes.
void setAccessString(const std::string &access_str, bool test_mode=false)
Set the access string.
bool operator!=(const ConfigDbInfo &other) const
Compares two objects for inequality.
const db::DatabaseConnection::ParameterMap & getParameters() const
Retrieve the map of parameter values.
Defines the logger used by the top-level component of kea-lfc.
bool operator==(const ConfigDbInfo &other) const
Compares two objects for equality.
void merge(ElementPtr element, ConstElementPtr other)
Merges the data from other into element.
Provides configuration information used during a server's configuration process.
ConfigControlInfo()
Constructor.
std::map< std::string, std::string > ParameterMap
Database configuration parameter map.
boost::shared_ptr< ConfigControlInfo > ConfigControlInfoPtr
Defines a pointer to a ConfigControlInfo.
const ConfigDbInfoList & getConfigDatabases() const
Retrieves the list of databases.
static std::string redactedAccessString(const ParameterMap ¶meters)
Redact database access string.
std::vector< ConfigDbInfo > ConfigDbInfoList
boost::shared_ptr< const ConfigControlInfo > ConstConfigControlInfoPtr
Defines a pointer to a const ConfigControlInfo.