#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 |
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 | ||
) |
cond::BasePayloadProxy::BasePayloadProxy | ( | cond::DbSession & | session, |
const std::string & | token, | ||
bool | errorPolicy | ||
) |
Definition at line 29 of file PayloadProxy.cc.
References cond::DbTransaction::commit(), cond::IOVProxy::load(), m_iov, m_session, alignCSCRings::s, cond::DbTransaction::start(), stats, and cond::DbSession::transaction().
|
virtual |
Definition at line 41 of file PayloadProxy.cc.
|
pure virtual |
|
inline |
bool cond::BasePayloadProxy::isValid | ( | void | ) | const |
Definition at line 112 of file PayloadProxy.cc.
References cond::invalidTime(), m_element, cond::IOVElementProxy::since(), cond::IOVElementProxy::till(), and cond::IOVElementProxy::token().
Referenced by make(), and core.AutoHandle.AutoHandle::ReallyLoad().
|
privatepure virtual |
cond::ValidityInterval cond::BasePayloadProxy::loadFor | ( | cond::Time_t | time | ) |
Definition at line 59 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 65 of file PayloadProxy.cc.
References cond::IOVProxy::iov(), m_element, m_iov, make(), gen::n, cond::IOVElementProxy::set(), cond::IOVElementProxy::since(), and cond::IOVElementProxy::till().
void cond::BasePayloadProxy::loadIov | ( | const std::string | iovToken | ) |
Definition at line 43 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 83 of file PayloadProxy.h.
void cond::BasePayloadProxy::loadTag | ( | const std::string | tag | ) |
Definition at line 50 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 72 of file PayloadProxy.cc.
References cond::DbTransaction::commit(), alignCSCRings::e, Exception, 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 118 of file PayloadProxy.cc.
References cond::DbTransaction::commit(), 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 130 of file PayloadProxy.cc.
References cond::DbTransaction::commit(), 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 104 of file PayloadProxy.cc.
References cond::IOVProxy::find(), m_element, m_iov, cond::IOVElementProxy::since(), and cond::IOVElementProxy::till().
|
inline |
|
inline |
|
protected |
Definition at line 95 of file PayloadProxy.h.
Referenced by make().
|
protected |
Definition at line 97 of file PayloadProxy.h.
Referenced by isValid(), loadFor(), make(), refresh(), and setIntervalFor().
|
protected |
Definition at line 96 of file PayloadProxy.h.
Referenced by BasePayloadProxy(), iov(), loadFor(), loadIov(), loadTag(), refresh(), setIntervalFor(), and timetype().
|
mutableprotected |
Definition at line 98 of file PayloadProxy.h.
Referenced by BasePayloadProxy(), loadIov(), loadTag(), make(), and refresh().
|
protected |
Definition at line 102 of file PayloadProxy.h.
Referenced by cond::PayloadProxy< std::vector< cond::Time_t > >::invalidateCache(), make(), and token().
Stats cond::BasePayloadProxy::stats |
Definition at line 44 of file PayloadProxy.h.
Referenced by BasePayloadProxy(), make(), and refresh().