7 #ifndef LEASE_MGR_FACTORY_H
8 #define LEASE_MGR_FACTORY_H
14 #include <boost/scoped_ptr.hpp>
70 static void create(
const std::string& dbaccess);
89 static void recreate(
const std::string& dbaccess,
90 bool preserve_callbacks =
true);
112 static boost::scoped_ptr<TrackingLeaseMgr>& getLeaseMgrPtr();
This is a base class for exceptions thrown from the DNS library module.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
static void create(const std::string &dbaccess)
Create an instance of a lease manager.
static TrackingLeaseMgr & instance()
Return current lease manager.
static void destroy()
Destroy lease manager.
static bool haveInstance()
Indicates if the lease manager has been instantiated.
static void recreate(const std::string &dbaccess, bool preserve_callbacks=true)
Recreate an instance of a lease manager with optionally preserving registered callbacks.
No lease manager exception.
NoLeaseManager(const char *file, size_t line, const char *what)
Introduces callbacks into the LeaseMgr.
Defines the logger used by the top-level component of kea-lfc.