#include <PayloadProxy.h>
Classes | |
struct | ObjId |
struct | Stats |
Public Types | |
typedef std::vector< ObjId > | ObjIds |
Public Member Functions | |
BasePayloadProxy (cond::DbSession &session, bool errorPolicy) | |
BasePayloadProxy (cond::DbSession &session, const std::string &token, bool errorPolicy) | |
virtual void | invalidateCache ()=0 |
IOVProxy const & | iov () const |
bool | isValid () const |
cond::ValidityInterval | loadFor (cond::Time_t time) |
cond::ValidityInterval | loadFor (size_t n) |
void | loadIov (const std::string iovToken) |
virtual void | loadMore (CondGetter const &) |
void | loadTag (const std::string tag) |
void | make () |
bool | refresh () |
bool | refresh (cond::DbSession &newSession) |
cond::ValidityInterval | setIntervalFor (cond::Time_t time) |
TimeType | timetype () const |
std::string const & | token () const |
virtual | ~BasePayloadProxy () |
Public Attributes | |
Stats | stats |
Static Public Attributes | |
static Stats | gstats = {0,0,0,0,0,0,0} |
Protected Attributes | |
bool | m_doThrow |
IOVElementProxy | m_element |
IOVProxy | m_iov |
DbSession | m_session |
std::string | m_token |
Private Member Functions | |
virtual bool | load (cond::DbSession &session, std::string const &token)=0 |
Definition at line 23 of file PayloadProxy.h.
typedef std::vector<ObjId> cond::BasePayloadProxy::ObjIds |
Definition at line 31 of file PayloadProxy.h.
cond::BasePayloadProxy::BasePayloadProxy | ( | cond::DbSession & | session, |
bool | errorPolicy | ||
) |
Definition at line 25 of file PayloadProxy.cc.
References gstats, cond::BasePayloadProxy::Stats::nProxy, alignCSCRings::s, and stats.
cond::BasePayloadProxy::BasePayloadProxy | ( | cond::DbSession & | session, |
const std::string & | token, | ||
bool | errorPolicy | ||
) |
Definition at line 33 of file PayloadProxy.cc.
References cond::DbTransaction::commit(), gstats, cond::IOVProxy::load(), m_iov, m_session, cond::BasePayloadProxy::Stats::nProxy, alignCSCRings::s, cond::DbTransaction::start(), stats, and cond::DbSession::transaction().
|
virtual |
Definition at line 46 of file PayloadProxy.cc.
|
pure virtual |
|
inline |
bool cond::BasePayloadProxy::isValid | ( | void | ) | const |
Definition at line 118 of file PayloadProxy.cc.
References cond::invalidTime(), m_element, cond::IOVElementProxy::since(), cond::IOVElementProxy::till(), and cond::IOVElementProxy::token().
Referenced by make().
|
privatepure virtual |
cond::ValidityInterval cond::BasePayloadProxy::loadFor | ( | cond::Time_t | time | ) |
Definition at line 64 of file PayloadProxy.cc.
References cond::IOVProxy::find(), m_element, m_iov, make(), cond::IOVElementProxy::since(), and cond::IOVElementProxy::till().
cond::ValidityInterval cond::BasePayloadProxy::loadFor | ( | size_t | n | ) |
Definition at line 70 of file PayloadProxy.cc.
References cond::IOVProxy::iov(), m_element, m_iov, make(), n, cond::IOVElementProxy::set(), cond::IOVElementProxy::since(), and cond::IOVElementProxy::till().
void cond::BasePayloadProxy::loadIov | ( | const std::string | iovToken | ) |
Definition at line 48 of file PayloadProxy.cc.
References cond::DbTransaction::commit(), invalidateCache(), cond::IOVProxy::load(), m_iov, m_session, cond::DbTransaction::start(), and cond::DbSession::transaction().
|
inlinevirtual |
Reimplemented in cond::PayloadProxy< cond::KeyList >.
Definition at line 85 of file PayloadProxy.h.
void cond::BasePayloadProxy::loadTag | ( | const std::string | tag | ) |
Definition at line 55 of file PayloadProxy.cc.
References cond::DbTransaction::commit(), cond::MetaData::getToken(), invalidateCache(), cond::IOVProxy::load(), m_iov, m_session, cond::DbTransaction::start(), AlCaHLTBitMon_QueryRunRegistry::string, and cond::DbSession::transaction().
void cond::BasePayloadProxy::make | ( | ) |
Definition at line 77 of file PayloadProxy.cc.
References cond::DbTransaction::commit(), alignCSCRings::e, edm::hlt::Exception, gstats, cond::BasePayloadProxy::Stats::ids, cond::invalidTime(), isValid(), load(), m_doThrow, m_element, m_session, m_token, cond::BasePayloadProxy::Stats::nLoad, cond::BasePayloadProxy::Stats::nMake, convertSQLiteXML::ok, cond::IOVElementProxy::set(), cond::IOVElementProxy::since(), cond::DbTransaction::start(), stats, AlCaHLTBitMon_QueryRunRegistry::string, token(), cond::IOVElementProxy::token(), cond::DbSession::transaction(), and cms::Exception::what().
Referenced by loadFor().
bool cond::BasePayloadProxy::refresh | ( | ) |
Definition at line 124 of file PayloadProxy.cc.
References cond::DbTransaction::commit(), gstats, m_element, m_iov, m_session, cond::BasePayloadProxy::Stats::nArefresh, cond::BasePayloadProxy::Stats::nRefresh, cond::IOVProxy::refresh(), cond::DbTransaction::start(), stats, and cond::DbSession::transaction().
Referenced by Vispa.Main.TabController.TabController::checkModificationTimestamp().
bool cond::BasePayloadProxy::refresh | ( | cond::DbSession & | newSession | ) |
Definition at line 136 of file PayloadProxy.cc.
References cond::DbTransaction::commit(), gstats, m_element, m_iov, m_session, cond::BasePayloadProxy::Stats::nAreconnect, cond::BasePayloadProxy::Stats::nReconnect, cond::IOVProxy::refresh(), cond::DbTransaction::start(), stats, and cond::DbSession::transaction().
Referenced by Vispa.Main.TabController.TabController::checkModificationTimestamp().
cond::ValidityInterval cond::BasePayloadProxy::setIntervalFor | ( | cond::Time_t | time | ) |
Definition at line 110 of file PayloadProxy.cc.
References cond::IOVProxy::find(), m_element, m_iov, cond::IOVElementProxy::since(), and cond::IOVElementProxy::till().
|
inline |
|
inline |
|
static |
Definition at line 44 of file PayloadProxy.h.
Referenced by BasePayloadProxy(), make(), refresh(), and CondDBESSource::~CondDBESSource().
|
protected |
Definition at line 97 of file PayloadProxy.h.
Referenced by make().
|
protected |
Definition at line 99 of file PayloadProxy.h.
Referenced by isValid(), loadFor(), make(), refresh(), and setIntervalFor().
|
protected |
Definition at line 98 of file PayloadProxy.h.
Referenced by BasePayloadProxy(), iov(), loadFor(), loadIov(), loadTag(), refresh(), setIntervalFor(), and timetype().
|
mutableprotected |
Definition at line 100 of file PayloadProxy.h.
Referenced by BasePayloadProxy(), loadIov(), loadTag(), make(), and refresh().
|
protected |
Definition at line 104 of file PayloadProxy.h.
Referenced by cond::PayloadProxy< std::vector< cond::Time_t > >::invalidateCache(), make(), and token().
Stats cond::BasePayloadProxy::stats |
Definition at line 46 of file PayloadProxy.h.
Referenced by BasePayloadProxy(), make(), and refresh().