rad
5.1.0
|
#include <oldbAsyncWriter.hpp>
Public Member Functions | |
OldbAsyncWriter (std::chrono::seconds conn_timeout, std::chrono::milliseconds period) | |
virtual | ~OldbAsyncWriter () |
rad::cii::OldbAdapter & | GetOldbAdapter () |
void | SetOldbPrefix (const std::string &prefix) |
void | StartWriter () |
void | StopWriter () |
void | Set (const std::string &key, const rad::cii::OldbType &value) |
void | Set (const std::map< std::string, rad::cii::OldbType > &kv_map) |
OldbAsyncWriter (const OldbAsyncWriter &)=delete | |
OldbAsyncWriter & | operator= (const OldbAsyncWriter &)=delete |
Disable copy constructor. More... | |
This interface some mandatory methods used by the lsv::app::Application to retrieve application specific configuration and access/update CII OLDB.
rad::OldbAsyncWriter::OldbAsyncWriter | ( | std::chrono::seconds | conn_timeout, |
std::chrono::milliseconds | period | ||
) |
|
virtual |
|
delete |
rad::cii::OldbAdapter & rad::OldbAsyncWriter::GetOldbAdapter | ( | ) |
|
delete |
Disable copy constructor.
void rad::OldbAsyncWriter::Set | ( | const std::map< std::string, rad::cii::OldbType > & | kv_map | ) |
Method to merge the given attributes/values with the ones currently stored in this object.
void rad::OldbAsyncWriter::Set | ( | const std::string & | key, |
const rad::cii::OldbType & | value | ||
) |
Method to write an attribute/value pair.
key | Name of the attribute to be written. |
value | Value of the attribute to be written. |
void rad::OldbAsyncWriter::SetOldbPrefix | ( | const std::string & | prefix | ) |
This method allows to set a prefix to be added to all the keys before writing to the OLDB.
prefix | Prefix to be added to the keys. |
void rad::OldbAsyncWriter::StartWriter | ( | ) |
Method to start the thread writing to the OLDB.
void rad::OldbAsyncWriter::StopWriter | ( | ) |
Method to stop the thread writing to the OLDB.