Kea  1.5.0
isc::cb::BaseConfigBackend Class Referenceabstract

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~BaseConfigBackend()

virtual isc::cb::BaseConfigBackend::~BaseConfigBackend ( )
inlinevirtual

Virtual destructor.

Definition at line 36 of file base_config_backend.h.

Member Function Documentation

◆ getHost()

virtual std::string isc::cb::BaseConfigBackend::getHost ( ) const
pure virtual

Returns backend host.

This is used by the BaseConfigBackendPool to select backend when BackendSelector is specified.

Returns
host on which the database is located.

◆ getPort()

virtual uint16_t isc::cb::BaseConfigBackend::getPort ( ) const
pure virtual

Returns backend port number.

This is used by the BaseConfigBackendPool to select backend when BackendSelector is specified.

Returns
Port number on which database service is available.

◆ getType()

virtual std::string isc::cb::BaseConfigBackend::getType ( ) const
pure virtual

Returns backend type in the textual format.

Returns
Name of the storage for configurations, e.g. "mysql", "pgsql" and so forth.

The documentation for this class was generated from the following file: