13#include <boost/algorithm/string.hpp>
14#include <boost/foreach.hpp>
15#include <boost/lexical_cast.hpp>
25 : appended_parameters_(), lease_db_access_(
"type=memfile"),
46 std::list<std::string> ret;
48 if (!dbaccess.empty()) {
64 for (std::string& hds : host_db_access_list) {
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.
std::string getHostDbAccessString() const
Retrieves host database access string.
std::list< std::string > host_db_access_
Holds host database access strings.
std::string appended_parameters_
Parameters to be appended to the database access strings.
CfgDbAccess()
Constructor.
std::list< std::string > getHostDbAccessStringList() const
Retrieves host database access string.
std::string lease_db_access_
Holds lease database access string.
std::string getLeaseDbAccessString() const
Retrieves lease database access string.
static void create()
Creates new instance of the HostMgr.
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.
static void create(const std::string &dbaccess)
Create an instance of a lease manager.
static void destroy()
Destroy lease manager.
Defines the logger used by the top-level component of kea-dhcp-ddns.