#include <PayloadReader.h>
Public Member Functions | |
void | close () |
ConnectionPool & | connection () |
template<typename T > | |
std::shared_ptr< T > | fetch (const cond::Hash &payloadHash) |
void | open () |
void | open (const std::string &connectionString) |
PayloadReader & | operator= (const PayloadReader &rhs) |
PayloadReader () | |
PayloadReader (const PayloadReader &rhs) | |
virtual | ~PayloadReader () |
Static Public Attributes | |
static constexpr const char *const | PRODUCTION_DB = "oracle://cms_orcon_adg/CMS_CONDITIONS" |
Private Attributes | |
std::shared_ptr< ConnectionPool > | m_connection |
Session | m_session |
Definition at line 23 of file PayloadReader.h.
PayloadReader::PayloadReader | ( | ) |
PayloadReader::PayloadReader | ( | const PayloadReader & | rhs | ) |
Definition at line 9 of file PayloadReader.cc.
|
virtual |
Definition at line 11 of file PayloadReader.cc.
void PayloadReader::close | ( | void | ) |
Definition at line 27 of file PayloadReader.cc.
References cond::persistency::Session::close(), and m_session.
Referenced by esMonitoring.AsyncLineReaderMixin::handle_close(), and esMonitoring.FDJsonServer::handle_close().
ConnectionPool & PayloadReader::connection | ( | ) |
|
inline |
Definition at line 62 of file PayloadReader.h.
References cond::persistency::Transaction::commit(), cond::persistency::Session::connectionString(), cond::persistency::Session::fetchPayload(), m_session, open(), PRODUCTION_DB, runTheMatrix::ret, cond::persistency::Transaction::start(), and cond::persistency::Session::transaction().
void PayloadReader::open | ( | ) |
void PayloadReader::open | ( | const std::string & | connectionString | ) |
Definition at line 21 of file PayloadReader.cc.
References l1RCTOmdsFedVectorProducer_cfi::connectionString, m_connection, and m_session.
PayloadReader & PayloadReader::operator= | ( | const PayloadReader & | rhs | ) |
Definition at line 13 of file PayloadReader.cc.
References m_connection, and m_session.
|
private |
Definition at line 57 of file PayloadReader.h.
Referenced by connection(), open(), operator=(), and PayloadReader().
|
private |
Definition at line 58 of file PayloadReader.h.
Referenced by close(), fetch(), open(), and operator=().
|
staticconstexpr |
Definition at line 25 of file PayloadReader.h.