Kea 2.7.6
|
Represents information about a Kea server in the database. More...
#include <server.h>
Public Member Functions | |
Server (const data::ServerTag &tag, const std::string &description) | |
Constructor. | |
std::string | getDescription () const |
Returns the description of the server. | |
data::ServerTag | getServerTag () const |
Returns server tag. | |
std::string | getServerTagAsText () const |
Returns server tag as text. | |
virtual data::ElementPtr | toElement () const |
Unparses server object. | |
Public Member Functions inherited from isc::data::BaseStampedElement | |
BaseStampedElement () | |
Constructor. | |
uint64_t | getId () const |
Returns element's database identifier. | |
boost::posix_time::ptime | getModificationTime () const |
Returns timestamp. | |
void | setId (const uint64_t id) |
Sets element's database identifier. | |
void | setModificationTime (const boost::posix_time::ptime ×tamp) |
Sets timestamp to the explicitly provided value. | |
void | updateModificationTime () |
Sets timestamp to the current time. | |
Public Member Functions inherited from isc::data::CfgToElement | |
virtual | ~CfgToElement () |
Destructor. | |
Static Public Member Functions | |
static ServerPtr | create (const data::ServerTag &tag, const std::string &description="") |
Factory function to be used to create an instance of the Server object. | |
Additional Inherited Members | |
Protected Attributes inherited from isc::data::BaseStampedElement | |
uint64_t | id_ |
Database identifier of the configuration element. | |
boost::posix_time::ptime | timestamp_ |
Holds timestamp value. | |
Represents information about a Kea server in the database.
The configuration backend holds the information about the servers for which the backend holds the configuration information. The information includes the server tag (unique name), server description provided by the administrator and the metadata.
This class extends the base class with the server description field.
isc::db::Server::Server | ( | const data::ServerTag & | tag, |
const std::string & | description ) |
|
static |
|
inline |
Returns the description of the server.
Definition at line 69 of file server.h.
Referenced by toElement().
|
inline |
|
inline |
Returns server tag as text.
Definition at line 61 of file server.h.
References isc::data::ServerTag::get().
Referenced by toElement().
|
virtual |
Unparses server object.
Implements isc::data::CfgToElement.
Definition at line 34 of file server.cc.
References isc::data::Element::create(), isc::data::Element::createMap(), getDescription(), and getServerTagAsText().