#include <IOVEditor.h>
Public Member Functions | |
unsigned int | append (cond::Time_t sinceTime, const std::string &payloadToken) |
void | bulkAppend (std::vector< std::pair< cond::Time_t, std::string > > &values) |
Bulk append of iov chunck. More... | |
void | bulkAppend (std::vector< cond::IOVElement > &values) |
std::string | create (cond::TimeType timetype) |
std::string | create (cond::TimeType timetype, cond::Time_t lastTill, const std::string &metadata) |
std::string | create (cond::TimeType timetype, cond::Time_t lastTill) |
bool | createIOVContainerIfNecessary () |
void | deleteEntries (bool withPayload=false) |
void | editMetadata (std::string const &metadata, bool append=false) |
edit metadata More... | |
unsigned int | freeInsert (cond::Time_t sinceTime, const std::string &payloadToken) |
insert a payload with known since in any position More... | |
size_t | import (cond::DbSession &sourceSess, const std::string &sourceIovToken) |
boost::shared_ptr < IOVImportIterator > | importIterator () |
unsigned int | insert (cond::Time_t tillTime, const std::string &payloadToken) |
Assign a payload with till time. Returns the payload index in the iov sequence. More... | |
IOVEditor () | |
IOVEditor (cond::DbSession &dbSess) | |
IOVEditor (cond::DbSession &dbSess, const std::string &token) | |
IOVEditor (const IOVEditor &rhs) | |
void | load (const std::string &token) |
IOVEditor & | operator= (const IOVEditor &rhs) |
cond::IOVProxy | proxy () const |
void | reload () |
void | setScope (cond::IOVSequence::ScopeType scope) |
set the scope More... | |
void | stamp (std::string const &icomment, bool append=false) |
TimeType | timetype () const |
std::string const & | token () const |
unsigned int | truncate (bool withPayload=false) |
void | updateClosure (cond::Time_t newtillTime) |
Update the closure of the iov sequence. More... | |
~IOVEditor () | |
Destructor. More... | |
Private Member Functions | |
void | debugInfo (std::ostream &co) const |
void | reportError (std::string message) const |
void | reportError (std::string message, cond::Time_t time) const |
bool | validTime (cond::Time_t time, cond::TimeType timetype) const |
bool | validTime (cond::Time_t time) const |
Private Attributes | |
boost::shared_ptr < cond::IOVProxyData > | m_iov |
bool | m_isLoaded |
Definition at line 56 of file IOVEditor.h.
IOVEditor::IOVEditor | ( | ) |
Definition at line 168 of file IOVEditor.cc.
IOVEditor::~IOVEditor | ( | ) |
|
explicit |
Definition at line 175 of file IOVEditor.cc.
IOVEditor::IOVEditor | ( | cond::DbSession & | dbSess, |
const std::string & | token | ||
) |
Definition at line 180 of file IOVEditor.cc.
IOVEditor::IOVEditor | ( | const IOVEditor & | rhs | ) |
Definition at line 186 of file IOVEditor.cc.
unsigned int IOVEditor::append | ( | cond::Time_t | sinceTime, |
const std::string & | payloadToken | ||
) |
Append a payload with known since time. The previous last payload's till time will be adjusted to the new payload since time. Returns the payload index in the iov sequence
Definition at line 416 of file IOVEditor.cc.
References cond::TimeTypeSpecs::endValue, o2o::iov, m_iov, m_isLoaded, reload(), reportError(), run_regression::ret, AlCaHLTBitMon_QueryRunRegistry::string, cond::timeTypeSpecs, cond::updateIOV(), and validTime().
Referenced by Vispa.Views.PropertyView.PropertyView::addProperty(), cond::AlignSplitIOV::execute(), cond::persistency::OraIOVTable::insertOne(), python.seqvaluedict.seqdict::push(), BeautifulSoup.Tag::setString(), and TestFunct::WriteWithIOV().
void IOVEditor::bulkAppend | ( | std::vector< std::pair< cond::Time_t, std::string > > & | values | ) |
Bulk append of iov chunck.
Definition at line 321 of file IOVEditor.cc.
References firstTime, o2o::iov, m_iov, m_isLoaded, reload(), reportError(), AlCaHLTBitMon_QueryRunRegistry::string, cond::updateIOV(), validTime(), and makeHLTPrescaleTable::values.
Referenced by cond::persistency::OraIOVTable::insertMany().
void IOVEditor::bulkAppend | ( | std::vector< cond::IOVElement > & | values | ) |
Definition at line 348 of file IOVEditor.cc.
References firstTime, o2o::iov, m_iov, m_isLoaded, reload(), reportError(), AlCaHLTBitMon_QueryRunRegistry::string, cond::updateIOV(), and validTime().
std::string IOVEditor::create | ( | cond::TimeType | timetype | ) |
Definition at line 260 of file IOVEditor.cc.
References cond::insertIOV(), m_iov, and m_isLoaded.
Referenced by cond::ExportIOVUtilities::execute(), cond::AlignSplitIOV::execute(), cond::persistency::OraTagTable::insert(), and TestFunct::WriteWithIOV().
std::string IOVEditor::create | ( | cond::TimeType | timetype, |
cond::Time_t | lastTill, | ||
const std::string & | metadata | ||
) |
Definition at line 267 of file IOVEditor.cc.
References cond::insertIOV(), m_iov, and m_isLoaded.
std::string IOVEditor::create | ( | cond::TimeType | timetype, |
cond::Time_t | lastTill | ||
) |
Definition at line 277 of file IOVEditor.cc.
References cond::insertIOV(), m_iov, m_isLoaded, and AlCaHLTBitMon_QueryRunRegistry::string.
bool IOVEditor::createIOVContainerIfNecessary | ( | ) |
Definition at line 249 of file IOVEditor.cc.
References cond::IOVSchemaUtility::createIOVContainer(), cond::IOVSchemaUtility::existsIOVContainer(), m_iov, and run_regression::ret.
Referenced by cond::ExportIOVUtilities::execute().
|
private |
Definition at line 208 of file IOVEditor.cc.
References o2o::iov, m_iov, cond::TimeTypeSpecs::name, and cond::timeTypeSpecs.
Referenced by reportError().
void IOVEditor::deleteEntries | ( | bool | withPayload = false | ) |
Definition at line 504 of file IOVEditor.cc.
References o2o::iov, m_iov, m_isLoaded, reload(), reportError(), and AlCaHLTBitMon_QueryRunRegistry::string.
void IOVEditor::editMetadata | ( | std::string const & | metadata, |
bool | append = false |
||
) |
edit metadata
Definition at line 385 of file IOVEditor.cc.
References o2o::iov, m_iov, m_isLoaded, reload(), and cond::updateIOV().
unsigned int IOVEditor::freeInsert | ( | cond::Time_t | sinceTime, |
const std::string & | payloadToken | ||
) |
insert a payload with known since in any position
Definition at line 451 of file IOVEditor.cc.
References cond::TimeTypeSpecs::endValue, o2o::iov, m_iov, m_isLoaded, reload(), reportError(), run_regression::ret, AlCaHLTBitMon_QueryRunRegistry::string, cond::timeTypeSpecs, cond::updateIOV(), and validTime().
Referenced by cond::persistency::OraIOVTable::insertOne().
size_t IOVEditor::import | ( | cond::DbSession & | sourceSess, |
const std::string & | sourceIovToken | ||
) |
Definition at line 523 of file IOVEditor.cc.
References importIterator().
boost::shared_ptr< IOVImportIterator > IOVEditor::importIterator | ( | ) |
Definition at line 531 of file IOVEditor.cc.
References m_iov, m_isLoaded, and reload().
Referenced by cond::ExportIOVUtilities::execute(), and import().
unsigned int IOVEditor::insert | ( | cond::Time_t | tillTime, |
const std::string & | payloadToken | ||
) |
Assign a payload with till time. Returns the payload index in the iov sequence.
Definition at line 297 of file IOVEditor.cc.
References o2o::iov, m_iov, m_isLoaded, reload(), reportError(), run_regression::ret, AlCaHLTBitMon_QueryRunRegistry::string, cond::updateIOV(), and validTime().
Referenced by BeautifulSoup.PageElement::_invert().
void IOVEditor::load | ( | const std::string & | token | ) |
Definition at line 202 of file IOVEditor.cc.
References m_iov, m_isLoaded, and token().
Referenced by cond::ExportIOVUtilities::execute(), MatrixToProcess.MatrixToProcess::getProcess(), MatrixToProcess.MatrixToProcess::listAll(), cond::persistency::IOVCache::load(), and cond::persistency::OraTagTable::update().
IOVProxy IOVEditor::proxy | ( | ) | const |
Definition at line 546 of file IOVEditor.cc.
References m_iov.
Referenced by cond::ExportIOVUtilities::execute(), cond::persistency::IOVCache::iovSequence(), and cond::persistency::IOVCache::session().
void IOVEditor::reload | ( | ) |
Definition at line 197 of file IOVEditor.cc.
References m_iov, and m_isLoaded.
Referenced by append(), bulkAppend(), deleteEntries(), editMetadata(), cond::ExportIOVUtilities::execute(), freeInsert(), importIterator(), insert(), setScope(), stamp(), truncate(), and updateClosure().
|
private |
Definition at line 231 of file IOVEditor.cc.
References debugInfo(), edm::hlt::Exception, python.rootplot.argparse::message, and dbtoconf::out.
Referenced by append(), bulkAppend(), deleteEntries(), freeInsert(), insert(), truncate(), and updateClosure().
|
private |
Definition at line 239 of file IOVEditor.cc.
References debugInfo(), edm::hlt::Exception, dbtoconf::out, and cond::rpcobgas::time.
void IOVEditor::setScope | ( | cond::IOVSequence::ScopeType | scope | ) |
set the scope
Definition at line 395 of file IOVEditor.cc.
References o2o::iov, m_iov, m_isLoaded, reload(), and cond::updateIOV().
Referenced by cond::ExportIOVUtilities::execute().
void IOVEditor::stamp | ( | std::string const & | icomment, |
bool | append = false |
||
) |
Definition at line 375 of file IOVEditor.cc.
References o2o::iov, m_iov, m_isLoaded, reload(), and cond::updateIOV().
Referenced by cond::AlignSplitIOV::execute(), cond::persistency::OraTagTable::insert(), and cond::persistency::OraTagTable::update().
TimeType IOVEditor::timetype | ( | ) | const |
Definition at line 538 of file IOVEditor.cc.
References m_iov.
Referenced by cond::ExportIOVUtilities::execute(), cond::persistency::OraIOVTable::insertMany(), cond::persistency::OraIOVTable::insertOne(), and validTime().
std::string const & IOVEditor::token | ( | ) | const |
Definition at line 542 of file IOVEditor.cc.
References m_iov.
Referenced by cond::AlignSplitIOV::execute(), cond::persistency::IOVCache::load(), load(), and TestFunct::WriteWithIOV().
unsigned int IOVEditor::truncate | ( | bool | withPayload = false | ) |
Definition at line 485 of file IOVEditor.cc.
References o2o::iov, m_iov, m_isLoaded, reload(), reportError(), run_regression::ret, AlCaHLTBitMon_QueryRunRegistry::string, and cond::updateIOV().
Referenced by Vispa.Gui.VispaWidget.TextField::calculateDimensions().
void IOVEditor::updateClosure | ( | cond::Time_t | newtillTime | ) |
Update the closure of the iov sequence.
Definition at line 405 of file IOVEditor.cc.
References o2o::iov, m_iov, m_isLoaded, reload(), reportError(), and cond::updateIOV().
Referenced by cond::persistency::OraTagTable::update().
|
private |
Definition at line 284 of file IOVEditor.cc.
References cond::TimeTypeSpecs::beginValue, cond::TimeTypeSpecs::endValue, timetype(), and cond::timeTypeSpecs.
Referenced by append(), bulkAppend(), freeInsert(), insert(), and validTime().
|
private |
Definition at line 290 of file IOVEditor.cc.
References m_iov, and validTime().
|
private |
Definition at line 147 of file IOVEditor.h.
Referenced by append(), bulkAppend(), create(), createIOVContainerIfNecessary(), debugInfo(), deleteEntries(), editMetadata(), freeInsert(), importIterator(), insert(), load(), operator=(), proxy(), reload(), setScope(), stamp(), timetype(), token(), truncate(), updateClosure(), and validTime().
|
private |
Definition at line 146 of file IOVEditor.h.
Referenced by append(), bulkAppend(), create(), deleteEntries(), editMetadata(), freeInsert(), importIterator(), insert(), load(), operator=(), reload(), setScope(), stamp(), truncate(), and updateClosure().