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) {
std::list< std::string > host_db_access_
Holds host database access strings.
std::string getHostDbAccessString() const
Retrieves host database access string.
static void destroy()
Destroy lease manager.
void createManagers() const
Creates instance of lease manager and host data sources according to the configuration specified.
std::string getAccessString(const std::string &access_string) const
Returns lease or host database access string.
static void create()
Creates new instance of the HostMgr.
std::string lease_db_access_
Holds lease database access string.
Defines the logger used by the top-level component of kea-dhcp-ddns.
std::string getLeaseDbAccessString() const
Retrieves lease database access string.
static void create(const std::string &dbaccess)
Create an instance of a lease manager.
std::list< std::string > getHostDbAccessStringList() const
Retrieves host database access string.
static void addBackend(const std::string &access)
Add an alternate host backend (aka host data source).
static bool checkCacheBackend(bool logging=false)
Check for the cache host backend.
std::string appended_parameters_
Parameters to be appended to the database access strings.