 |
Kea
1.5.0
|
Go to the documentation of this file.
13 #include <boost/algorithm/string.hpp>
14 #include <boost/foreach.hpp>
15 #include <boost/lexical_cast.hpp>
24 CfgDbAccess::CfgDbAccess()
25 : appended_parameters_(), lease_db_access_(
"type=memfile"),
44 std::list<std::string>
46 std::list<std::string> ret;
48 if (!dbaccess.empty()) {
64 for (std::string& hds : host_db_access_list) {
static bool checkCacheBackend(bool logging=false)
Check for the cache host backend.
static void addBackend(const std::string &access)
Add an alternate host backend (aka host data source).
static void create()
Creates new instance of the HostMgr.
std::string getLeaseDbAccessString() const
Retrieves lease database access string.
static void destroy()
Destroy lease manager.
Defines the logger used by the top-level component of kea-dhcp-ddns.
std::string appended_parameters_
Parameters to be appended to the database access strings.
std::string getHostDbAccessString() const
Retrieves host database access string.
std::list< std::string > getHostDbAccessStringList() const
Retrieves host database access string.
std::list< std::string > host_db_access_
Holds host database access strings.
static void create(const std::string &dbaccess)
Create an instance of a lease manager.
std::string lease_db_access_
Holds lease database access string.
std::string getAccessString(const std::string &access_string) const
Returns lease or host database access string.
void createManagers() const
Creates instance of lease manager and host data sources according to the configuration specified.