This class is the write-only interface to the CII OLDB.
More...
#include <dbInterface.hpp>
This class is the write-only interface to the CII OLDB.
Definition at line 46 of file dbInterface.hpp.
◆ DbInterface() [1/2]
server::DbInterface::DbInterface |
( |
const std::string & |
prefix, |
|
|
rad::OldbAsyncWriter & |
runtime_db |
|
) |
| |
Constructor.
- Parameters
-
[in] | prefix | String used as prefix when building the keys. |
[in] | runtime_db | Reference to the in-memory DB adapter. |
Definition at line 20 of file dbInterface.cpp.
◆ ~DbInterface()
server::DbInterface::~DbInterface |
( |
| ) |
|
|
virtual |
◆ DbInterface() [2/2]
server::DbInterface::DbInterface |
( |
const DbInterface & |
| ) |
|
|
delete |
◆ operator=()
Disable copy constructor.
◆ Set()
void server::DbInterface::Set |
( |
const std::string & |
key, |
|
|
const std::string & |
value |
|
) |
| |
- Parameters
-
[in] | key | Key to be written in the DB. |
[in] | value | Value, associated to the given key, to be written in the DB. |
Definition at line 47 of file dbInterface.cpp.
◆ SetConfig()
void server::DbInterface::SetConfig |
( |
Config & |
cfg | ) |
|
Set the application configuration information in the DB.
- Parameters
-
[in] | reqEndpoint | Request msg endpoint. |
[in] | dbIpAddr | DB IP address. |
[in] | dbPort | DB port. |
[in] | dbTimeout | DB timeout. |
Definition at line 40 of file dbInterface.cpp.
◆ SetControlState()
void server::DbInterface::SetControlState |
( |
const std::string & |
value | ) |
|
- Parameters
-
[in] | value | State to be stored in the DB. |
Definition at line 35 of file dbInterface.cpp.
The documentation for this class was generated from the following files: