#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 (cond::DbSession &dbSess) | |
IOVEditor (cond::DbSession &dbSess, const std::string &token) | |
void | load (const std::string &token) |
cond::IOVProxy | proxy () |
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.
|
explicit |
Definition at line 170 of file IOVEditor.cc.
IOVEditor::IOVEditor | ( | cond::DbSession & | dbSess, |
const std::string & | token | ||
) |
Definition at line 175 of file IOVEditor.cc.
IOVEditor::~IOVEditor | ( | ) |
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 400 of file IOVEditor.cc.
References cond::TimeTypeSpecs::endValue, o2o::iov, m_iov, m_isLoaded, reload(), reportError(), run_regression::ret, cond::timeTypeSpecs, cond::updateIOV(), and validTime().
Referenced by Vispa.Views.PropertyView.PropertyView::addProperty(), cond::service::PoolDBOutputService::appendIOV(), cond::service::PoolDBOutputService::createNewIOV(), cond::AlignSplitIOV::execute(), python.seqvaluedict.seqdict::push(), and TestFunct::WriteWithIOV().
void IOVEditor::bulkAppend | ( | std::vector< std::pair< cond::Time_t, std::string > > & | values | ) |
Bulk append of iov chunck.
Definition at line 305 of file IOVEditor.cc.
References firstTime, o2o::iov, m_iov, m_isLoaded, reload(), reportError(), cond::updateIOV(), validTime(), and makeHLTPrescaleTable::values.
void IOVEditor::bulkAppend | ( | std::vector< cond::IOVElement > & | values | ) |
Definition at line 332 of file IOVEditor.cc.
References firstTime, o2o::iov, m_iov, m_isLoaded, reload(), reportError(), cond::updateIOV(), and validTime().
std::string IOVEditor::create | ( | cond::TimeType | timetype | ) |
Definition at line 244 of file IOVEditor.cc.
References cond::insertIOV(), m_iov, and m_isLoaded.
Referenced by cond::service::PoolDBOutputService::createNewIOV(), cond::ExportIOVUtilities::execute(), cond::AlignSplitIOV::execute(), and TestFunct::WriteWithIOV().
std::string IOVEditor::create | ( | cond::TimeType | timetype, |
cond::Time_t | lastTill, | ||
const std::string & | metadata | ||
) |
Definition at line 251 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 261 of file IOVEditor.cc.
References cond::insertIOV(), m_iov, and m_isLoaded.
bool IOVEditor::createIOVContainerIfNecessary | ( | ) |
Definition at line 233 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 192 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 488 of file IOVEditor.cc.
References o2o::iov, m_iov, m_isLoaded, reload(), and reportError().
void IOVEditor::editMetadata | ( | std::string const & | metadata, |
bool | append = false |
||
) |
edit metadata
Definition at line 369 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 435 of file IOVEditor.cc.
References cond::TimeTypeSpecs::endValue, o2o::iov, m_iov, m_isLoaded, reload(), reportError(), run_regression::ret, cond::timeTypeSpecs, cond::updateIOV(), and validTime().
Referenced by cond::service::PoolDBOutputService::appendIOV().
size_t IOVEditor::import | ( | cond::DbSession & | sourceSess, |
const std::string & | sourceIovToken | ||
) |
Definition at line 507 of file IOVEditor.cc.
References importIterator().
boost::shared_ptr< IOVImportIterator > IOVEditor::importIterator | ( | ) |
Definition at line 515 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 281 of file IOVEditor.cc.
References o2o::iov, m_iov, m_isLoaded, reload(), reportError(), run_regression::ret, cond::updateIOV(), and validTime().
Referenced by BeautifulSoup.PageElement::append().
void IOVEditor::load | ( | const std::string & | token | ) |
Definition at line 186 of file IOVEditor.cc.
References m_iov, m_isLoaded, and token().
Referenced by cond::ExportIOVUtilities::execute(), MatrixToProcess.MatrixToProcess::getProcess(), and MatrixToProcess.MatrixToProcess::listAll().
IOVProxy IOVEditor::proxy | ( | ) |
Definition at line 530 of file IOVEditor.cc.
References m_iov.
Referenced by cond::ExportIOVUtilities::execute().
void IOVEditor::reload | ( | ) |
Definition at line 181 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 215 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 223 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 379 of file IOVEditor.cc.
References o2o::iov, m_iov, m_isLoaded, reload(), and cond::updateIOV().
Referenced by cond::service::PoolDBOutputService::createNewIOV(), and cond::ExportIOVUtilities::execute().
void IOVEditor::stamp | ( | std::string const & | icomment, |
bool | append = false |
||
) |
Definition at line 359 of file IOVEditor.cc.
References o2o::iov, m_iov, m_isLoaded, reload(), and cond::updateIOV().
Referenced by cond::service::PoolDBOutputService::appendIOV(), cond::service::PoolDBOutputService::closeIOV(), cond::service::PoolDBOutputService::createNewIOV(), and cond::AlignSplitIOV::execute().
TimeType IOVEditor::timetype | ( | ) | const |
Definition at line 522 of file IOVEditor.cc.
References m_iov.
Referenced by cond::ExportIOVUtilities::execute(), and validTime().
std::string const & IOVEditor::token | ( | ) | const |
Definition at line 526 of file IOVEditor.cc.
References m_iov.
Referenced by cond::service::PoolDBOutputService::createNewIOV(), cond::AlignSplitIOV::execute(), load(), and TestFunct::WriteWithIOV().
unsigned int IOVEditor::truncate | ( | bool | withPayload = false | ) |
Definition at line 469 of file IOVEditor.cc.
References o2o::iov, m_iov, m_isLoaded, reload(), reportError(), run_regression::ret, 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 389 of file IOVEditor.cc.
References o2o::iov, m_iov, m_isLoaded, reload(), reportError(), and cond::updateIOV().
Referenced by cond::service::PoolDBOutputService::appendIOV(), and cond::service::PoolDBOutputService::closeIOV().
|
private |
Definition at line 268 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 274 of file IOVEditor.cc.
References m_iov, and validTime().
|
private |
Definition at line 140 of file IOVEditor.h.
Referenced by append(), bulkAppend(), create(), createIOVContainerIfNecessary(), debugInfo(), deleteEntries(), editMetadata(), freeInsert(), importIterator(), insert(), load(), proxy(), reload(), setScope(), stamp(), timetype(), token(), truncate(), updateClosure(), and validTime().
|
private |
Definition at line 139 of file IOVEditor.h.
Referenced by append(), bulkAppend(), create(), deleteEntries(), editMetadata(), freeInsert(), importIterator(), insert(), load(), reload(), setScope(), stamp(), truncate(), and updateClosure().