![]() |
![]() |
#include <IOVEditor.h>
Public Member Functions | |
std::string | description () const |
cond::Time_t | endOfValidity () const |
bool | flush () |
bool | flush (const boost::posix_time::ptime &operationTime) |
bool | flush (const std::string &logText) |
bool | flush (const std::string &logText, bool forceInsertion) |
void | insert (cond::Time_t since, const cond::Hash &payloadHash, bool checkType=false) |
void | insert (cond::Time_t since, const cond::Hash &payloadHash, const boost::posix_time::ptime &insertionTime, bool checkType=false) |
IOVEditor () | |
IOVEditor (const std::shared_ptr< SessionImpl > &session) | |
IOVEditor (const std::shared_ptr< SessionImpl > &session, const std::string &tag, cond::TimeType timeType, const std::string &payloadType, cond::SynchronizationType synchronizationType, const boost::posix_time::ptime &creationTime=boost::posix_time::microsec_clock::universal_time()) | |
IOVEditor (const IOVEditor &rhs) | |
cond::Time_t | lastValidatedTime () const |
void | load (const std::string &tag) |
IOVEditor & | operator= (const IOVEditor &rhs) |
std::string | payloadType () const |
void | setDescription (const std::string &description) |
void | setEndOfValidity (cond::Time_t validity) |
void | setLastValidatedTime (cond::Time_t time) |
void | setSynchronizationType (cond::SynchronizationType synchronizationType) |
void | setValidationMode () |
cond::SynchronizationType | synchronizationType () const |
std::string | tag () const |
cond::TimeType | timeType () const |
Private Member Functions | |
void | checkTransaction (const std::string &ctx) |
bool | flush (const std::string &logText, const boost::posix_time::ptime &operationTime, bool forceInsertion) |
Private Attributes | |
std::shared_ptr< IOVEditorData > | m_data |
std::shared_ptr< SessionImpl > | m_session |
Definition at line 28 of file IOVEditor.h.
IOVEditor::IOVEditor | ( | ) |
Definition at line 38 of file IOVEditor.cc.
|
explicit |
Definition at line 43 of file IOVEditor.cc.
IOVEditor::IOVEditor | ( | const std::shared_ptr< SessionImpl > & | session, |
const std::string & | tag, | ||
cond::TimeType | timeType, | ||
const std::string & | payloadType, | ||
cond::SynchronizationType | synchronizationType, | ||
const boost::posix_time::ptime & | creationTime = boost::posix_time::microsec_clock::universal_time() |
||
) |
Definition at line 48 of file IOVEditor.cc.
References m_data, synchronizationType(), tag(), and timeType().
IOVEditor::IOVEditor | ( | const IOVEditor & | rhs | ) |
Definition at line 64 of file IOVEditor.cc.
|
private |
Definition at line 263 of file IOVEditor.cc.
References m_session, and cond::persistency::throwException().
Referenced by flush(), and load().
std::string IOVEditor::description | ( | ) | const |
Definition at line 124 of file IOVEditor.cc.
References m_data.
Referenced by setDescription().
cond::Time_t IOVEditor::endOfValidity | ( | ) | const |
Definition at line 112 of file IOVEditor.cc.
References m_data, and cond::time::MIN_VAL().
bool IOVEditor::flush | ( | ) |
Definition at line 255 of file IOVEditor.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by SiStripDetVOffHandler::analyze(), SiStripPayloadHandler< SiStripPayload >::analyze(), cond::service::PoolDBOutputService::appendSinceTime(), cond::service::PoolDBOutputService::closeIOV(), cond::persistency::copyIov(), cond::service::PoolDBOutputService::createNewIOV(), flush(), popcon::PopConBTransitionSourceHandler< T >::getObjectsForBTransition(), popcon::PopConESTransitionSourceHandler< T >::getObjectsForESTransition(), and cond::persistency::importIovs().
bool IOVEditor::flush | ( | const boost::posix_time::ptime & | operationTime | ) |
Definition at line 251 of file IOVEditor.cc.
References flush(), and AlCaHLTBitMon_QueryRunRegistry::string.
bool IOVEditor::flush | ( | const std::string & | logText | ) |
bool IOVEditor::flush | ( | const std::string & | logText, |
bool | forceInsertion | ||
) |
|
private |
Definition at line 168 of file IOVEditor.cc.
References writedatasetfile::action, EnergyCorrector::c, checkTransaction(), h, mps_fire::i, cond::persistency::iovSorter(), checklumidiff::l, plotBeamSpotDB::last, m_data, m_session, mps_check::msg, jetUpdater_cfi::sort, AlCaHLTBitMon_QueryRunRegistry::string, cond::SYNCH_ANY, cond::SYNCH_VALIDATION, cond::synchronizationTypeNames(), and cond::persistency::throwException().
void IOVEditor::insert | ( | cond::Time_t | since, |
const cond::Hash & | payloadHash, | ||
bool | checkType = false |
||
) |
Definition at line 152 of file IOVEditor.cc.
References cmsPerfSuiteHarvest::now.
Referenced by SiStripDetVOffHandler::analyze(), SiStripPayloadHandler< SiStripPayload >::analyze(), BeautifulSoup.PageElement::append(), cond::service::PoolDBOutputService::appendSinceTime(), cond::persistency::copyIov(), cond::service::PoolDBOutputService::createNewIOV(), popcon::PopConBTransitionSourceHandler< T >::getObjectsForBTransition(), popcon::PopConESTransitionSourceHandler< T >::getObjectsForESTransition(), and cond::persistency::importIovs().
void IOVEditor::insert | ( | cond::Time_t | since, |
const cond::Hash & | payloadHash, | ||
const boost::posix_time::ptime & | insertionTime, | ||
bool | checkType = false |
||
) |
Definition at line 157 of file IOVEditor.cc.
References m_data.
Referenced by BeautifulSoup.PageElement::append().
cond::Time_t IOVEditor::lastValidatedTime | ( | ) | const |
Definition at line 136 of file IOVEditor.cc.
References m_data, and cond::time::MIN_VAL().
void IOVEditor::load | ( | const std::string & | tag | ) |
Definition at line 75 of file IOVEditor.cc.
References checkTransaction(), m_data, m_session, tag(), and cond::throwException().
Referenced by cond::persistency::Session::editIov(), MatrixToProcess.MatrixToProcess::getProcess(), MatrixToProcess.MatrixToProcess::listAll(), and ConfigBuilder.ConfigBuilder::prepare_FILTER().
Definition at line 69 of file IOVEditor.cc.
References m_data, and m_session.
std::string IOVEditor::payloadType | ( | ) | const |
Definition at line 96 of file IOVEditor.cc.
References m_data.
Referenced by cond::service::PoolDBOutputService::appendSinceTime(), cond::persistency::copyIov(), cond::service::PoolDBOutputService::createNewIOV(), and cond::persistency::importIovs().
void IOVEditor::setDescription | ( | const std::string & | description | ) |
Definition at line 128 of file IOVEditor.cc.
References description(), and m_data.
Referenced by SiStripDetVOffHandler::analyze(), SiStripPayloadHandler< SiStripPayload >::analyze(), cond::persistency::copyIov(), cond::service::PoolDBOutputService::createNewIOV(), popcon::PopConBTransitionSourceHandler< T >::getObjectsForBTransition(), popcon::PopConESTransitionSourceHandler< T >::getObjectsForESTransition(), and cond::persistency::importIovs().
void IOVEditor::setEndOfValidity | ( | cond::Time_t | validity | ) |
Definition at line 116 of file IOVEditor.cc.
References m_data, and protons_cff::time.
Referenced by cond::service::PoolDBOutputService::closeIOV().
void IOVEditor::setLastValidatedTime | ( | cond::Time_t | time | ) |
Definition at line 140 of file IOVEditor.cc.
References m_data, and protons_cff::time.
void IOVEditor::setSynchronizationType | ( | cond::SynchronizationType | synchronizationType | ) |
Definition at line 104 of file IOVEditor.cc.
References m_data, and synchronizationType().
void IOVEditor::setValidationMode | ( | ) |
Definition at line 148 of file IOVEditor.cc.
References m_data.
cond::SynchronizationType IOVEditor::synchronizationType | ( | ) | const |
Definition at line 100 of file IOVEditor.cc.
References m_data, and cond::SYNCH_ANY.
Referenced by IOVEditor(), and setSynchronizationType().
std::string IOVEditor::tag | ( | ) | const |
Definition at line 87 of file IOVEditor.cc.
References m_data.
Referenced by IOVEditor(), and load().
cond::TimeType IOVEditor::timeType | ( | ) | const |
Definition at line 92 of file IOVEditor.cc.
References cond::invalid, and m_data.
Referenced by cond::persistency::copyIov(), cond::persistency::importIovs(), and IOVEditor().
|
private |
Definition at line 89 of file IOVEditor.h.
Referenced by description(), endOfValidity(), flush(), insert(), IOVEditor(), lastValidatedTime(), load(), operator=(), payloadType(), setDescription(), setEndOfValidity(), setLastValidatedTime(), setSynchronizationType(), setValidationMode(), synchronizationType(), tag(), and timeType().
|
private |
Definition at line 90 of file IOVEditor.h.
Referenced by checkTransaction(), flush(), load(), and operator=().