Kea 2.7.6
|
Interface for Kea server specific configuration backend implementations. More...
#include <base_config_backend.h>
Public Member Functions | |
virtual | ~BaseConfigBackend () |
Virtual destructor. | |
virtual std::string | getHost () const =0 |
Returns backend host. | |
virtual isc::db::DatabaseConnection::ParameterMap | getParameters () const |
Return backend parameters. | |
virtual uint16_t | getPort () const =0 |
Returns backend port number. | |
virtual std::string | getType () const =0 |
Returns backend type in the textual format. | |
virtual bool | isUnusable () |
Flag which indicates if the config backend has an unusable connection. | |
Interface for Kea server specific configuration backend implementations.
Each Kea server (e.g. DHCPv4 server) needs to implement its own interface to store and fetch its configuration from the databases. This is because each Kea server uses a different set of configuration information. This is a base interface which should be implemented (and extended) by respective Kea servers to provide API to store and fetch configuration information from a database. Such implementation is called configuration backend. Each configuration backend facilitates a single database type, e.g. MySQL database. In order to support multiple database types, i.e. MySQL, PostgreSQL, each Kea server will have to implement 2 separate configuration backends, one for each database type.
Definition at line 34 of file base_config_backend.h.
|
inlinevirtual |
Virtual destructor.
Definition at line 38 of file base_config_backend.h.
|
pure virtual |
Returns backend host.
This is used by the BaseConfigBackendPool
to select backend when BackendSelector
is specified.
|
inlinevirtual |
Return backend parameters.
Returns the backend parameters.
Definition at line 76 of file base_config_backend.h.
|
pure virtual |
Returns backend port number.
This is used by the BaseConfigBackendPool
to select backend when BackendSelector
is specified.
|
pure virtual |
Returns backend type in the textual format.
|
inlinevirtual |
Flag which indicates if the config backend has an unusable connection.
Definition at line 67 of file base_config_backend.h.