rad  5.1.0
Public Member Functions | List of all members
rad::OldbAsyncWriter Class Reference

#include <oldbAsyncWriter.hpp>

Public Member Functions

 OldbAsyncWriter (std::chrono::seconds conn_timeout, std::chrono::milliseconds period)
 
virtual ~OldbAsyncWriter ()
 
rad::cii::OldbAdapterGetOldbAdapter ()
 
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
 
OldbAsyncWriteroperator= (const OldbAsyncWriter &)=delete
 Disable copy constructor. More...
 

Detailed Description

This interface some mandatory methods used by the lsv::app::Application to retrieve application specific configuration and access/update CII OLDB.

Constructor & Destructor Documentation

◆ OldbAsyncWriter() [1/2]

rad::OldbAsyncWriter::OldbAsyncWriter ( std::chrono::seconds  conn_timeout,
std::chrono::milliseconds  period 
)

◆ ~OldbAsyncWriter()

rad::OldbAsyncWriter::~OldbAsyncWriter ( )
virtual

◆ OldbAsyncWriter() [2/2]

rad::OldbAsyncWriter::OldbAsyncWriter ( const OldbAsyncWriter )
delete

Member Function Documentation

◆ GetOldbAdapter()

rad::cii::OldbAdapter & rad::OldbAsyncWriter::GetOldbAdapter ( )
Returns
Reference to the adapter object used to write to the OLDB.

◆ operator=()

OldbAsyncWriter& rad::OldbAsyncWriter::operator= ( const OldbAsyncWriter )
delete

Disable copy constructor.

◆ Set() [1/2]

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.

◆ Set() [2/2]

void rad::OldbAsyncWriter::Set ( const std::string &  key,
const rad::cii::OldbType value 
)

Method to write an attribute/value pair.

Parameters
keyName of the attribute to be written.
valueValue of the attribute to be written.

◆ SetOldbPrefix()

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.

Parameters
prefixPrefix to be added to the keys.

◆ StartWriter()

void rad::OldbAsyncWriter::StartWriter ( )

Method to start the thread writing to the OLDB.

◆ StopWriter()

void rad::OldbAsyncWriter::StopWriter ( )

Method to stop the thread writing to the OLDB.


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