![]() |
Kea
1.5.0
|
Provides configuration information used during a server's configuration process. More...
#include <config_ctl_info.h>
Inheritance diagram for isc::process::ConfigDbInfo:Public Member Functions | |
| ConfigDbInfo () | |
| Constructor. More... | |
| bool | equals (const ConfigDbInfo &other) const |
| Compares two objects for equality. More... | |
| std::string | getAccessString () const |
| Retrieves the database access string. More... | |
| const db::DatabaseConnection::ParameterMap & | getParameters () const |
| Retrieve the map of parameter values. More... | |
| bool | getParameterValue (const std::string &name, std::string &value) const |
| Fetch the value of a given parmeter. More... | |
| bool | operator!= (const ConfigDbInfo &other) const |
| Compares two objects for inequality. More... | |
| bool | operator== (const ConfigDbInfo &other) const |
| Compares two objects for equality. More... | |
| std::string | redactedAccessString () const |
| Retrieves the database access string with password redacted. More... | |
| void | setAccessString (const std::string &access_str) |
| Set the access string. More... | |
| virtual isc::data::ElementPtr | toElement () const |
| Unparse a configuration object. More... | |
Public Member Functions inherited from isc::data::CfgToElement | |
| virtual | ~CfgToElement () |
| Destructor. More... | |
Provides configuration information used during a server's configuration process.
Definition at line 23 of file config_ctl_info.h.
|
inline |
Constructor.
Definition at line 26 of file config_ctl_info.h.
| bool isc::process::ConfigDbInfo::equals | ( | const ConfigDbInfo & | other | ) | const |
Compares two objects for equality.
| other | An object to be compared with this object. |
Definition at line 23 of file config_ctl_info.cc.
Referenced by operator!=(), and operator==().
|
inline |
Retrieves the database access string.
Definition at line 42 of file config_ctl_info.h.
|
inline |
Retrieve the map of parameter values.
Definition at line 56 of file config_ctl_info.h.
| bool isc::process::ConfigDbInfo::getParameterValue | ( | const std::string & | name, |
| std::string & | value | ||
| ) | const |
Fetch the value of a given parmeter.
| name | name of the parameter value to fetch | |
| [out] | value | string which will contain the value of the parameter (if found). |
Definition at line 33 of file config_ctl_info.cc.
|
inline |
Compares two objects for inequality.
| other | An object to be compared with this object. |
Definition at line 97 of file config_ctl_info.h.
References equals().
Here is the call graph for this function:
|
inline |
Compares two objects for equality.
| other | An object to be compared with this object. |
Definition at line 88 of file config_ctl_info.h.
References equals().
Here is the call graph for this function:
|
inline |
Retrieves the database access string with password redacted.
Definition at line 49 of file config_ctl_info.h.
References isc::db::DatabaseConnection::redactedAccessString().
Here is the call graph for this function:| void isc::process::ConfigDbInfo::setAccessString | ( | const std::string & | access_str | ) |
Set the access string.
Sest the db's access string to the given value and then parses it into name-value pairs and storing them internally as a DatabaseConnection::ParameterMap. It discards the existing content of the map first. It does not validate the parameter names of values, ensuring the validity of the string content is placed upon the caller.
| access_str | string of name=value pairs seperated by spaces |
Definition at line 16 of file config_ctl_info.cc.
References isc::db::DatabaseConnection::parse().
Referenced by isc::process::ConfigControlInfo::addConfigDatabase().
Here is the call graph for this function:
|
virtual |
Unparse a configuration object.
Implements isc::data::CfgToElement.
Definition at line 28 of file config_ctl_info.cc.
References isc::db::DatabaseConnection::toElementDbAccessString().
Here is the call graph for this function: