![]() |
Kea
1.5.0
|
Interface for Kea server specific configuration backend implementations. More...
#include <base_config_backend.h>
Inheritance diagram for isc::cb::BaseConfigBackend:Public Member Functions | |
| virtual | ~BaseConfigBackend () |
| Virtual destructor. More... | |
| virtual std::string | getHost () const =0 |
| Returns backend host. More... | |
| virtual uint16_t | getPort () const =0 |
| Returns backend port number. More... | |
| virtual std::string | getType () const =0 |
| Returns backend type in the textual format. More... | |
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 faciliates a single database type, e.g. MySQL database. In order to support multiple database types, i.e. MySQL, Postgres, Cassandra, each Kea server will have to implement 3 separate configuration backends, one for each database type.
Definition at line 32 of file base_config_backend.h.
|
inlinevirtual |
Virtual destructor.
Definition at line 36 of file base_config_backend.h.
|
pure virtual |
Returns backend host.
This is used by the BaseConfigBackendPool to select backend when BackendSelector is specified.
|
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.