#include <Session.h>
Public Member Functions | |
void | addMigratedPayload (const std::string &sourceAccount, const std::string &sourceToken, const std::string &payloadId) |
void | addToMigrationLog (const std::string &sourceAccount, const std::string &sourceTag, const std::string &destinationTag, cond::MigrationStatus status) |
bool | checkMigrationLog (const std::string &sourceAccount, const std::string &sourceTag, std::string &destinationTag, cond::MigrationStatus &status) |
void | clearIov (const std::string &tag) |
void | close () |
std::string | connectionString () |
coral::ISessionProxy & | coralSession () |
void | createDatabase () |
GTEditor | createGlobalTag (const std::string &name) |
template<typename T > | |
IOVEditor | createIov (const std::string &tag, cond::TimeType timeType, cond::SynchronizationType synchronizationType=cond::SYNCH_ANY) |
IOVEditor | createIov (const std::string &payloadType, const std::string &tag, cond::TimeType timeType, cond::SynchronizationType synchronizationType=cond::SYNCH_ANY) |
IOVEditor | createIov (const std::string &payloadType, const std::string &tag, cond::TimeType timeType, cond::SynchronizationType synchronizationType, const boost::posix_time::ptime &creationTime) |
IOVEditor | createIovForPayload (const Hash &payloadHash, const std::string &tag, cond::TimeType timeType, cond::SynchronizationType synchronizationType=cond::SYNCH_ANY) |
GTEditor | editGlobalTag (const std::string &name) |
IOVEditor | editIov (const std::string &tag) |
bool | existsDatabase () |
bool | existsGlobalTag (const std::string &name) |
bool | existsIov (const std::string &tag) |
template<typename T > | |
boost::shared_ptr< T > | fetchPayload (const cond::Hash &payloadHash) |
bool | fetchPayloadData (const cond::Hash &payloadHash, std::string &payloadType, cond::Binary &payloadData, cond::Binary &streamerInfoData) |
IOVProxy | iovProxy () |
bool | isOraSession () |
bool | lookupMigratedPayload (const std::string &sourceAccount, const std::string &sourceToken, std::string &payloadId) |
coral::ISchema & | nominalSchema () |
Session & | operator= (const Session &rhs) |
std::string | parsePoolToken (const std::string &poolToken) |
GTProxy | readGlobalTag (const std::string &name) |
GTProxy | readGlobalTag (const std::string &name, const std::string &preFix, const std::string &postFix) |
IOVProxy | readIov (const std::string &tag, bool full=false) |
IOVProxy | readIov (const std::string &tag, const boost::posix_time::ptime &snapshottime, bool full=false) |
Session () | |
Session (const std::shared_ptr< SessionImpl > &sessionImpl) | |
Session (const Session &rhs) | |
template<typename T > | |
cond::Hash | storePayload (const T &payload, const boost::posix_time::ptime &creationTime=boost::posix_time::microsec_clock::universal_time()) |
Transaction & | transaction () |
void | updateMigratedPayload (const std::string &sourceAccount, const std::string &sourceToken, const std::string &payloadId) |
void | updateMigrationLog (const std::string &sourceAccount, const std::string &sourceTag, cond::MigrationStatus status) |
virtual | ~Session () |
Private Member Functions | |
cond::Hash | storePayloadData (const std::string &payloadObjectType, const std::pair< Binary, Binary > &payloadAndStreamerInfoData, const boost::posix_time::ptime &creationTime) |
Private Attributes | |
std::shared_ptr< SessionImpl > | m_session |
Transaction | m_transaction |
Session::Session | ( | ) |
Definition at line 38 of file Session.cc.
|
explicit |
Definition at line 43 of file Session.cc.
Session::Session | ( | const Session & | rhs | ) |
Definition at line 48 of file Session.cc.
|
virtual |
Definition at line 53 of file Session.cc.
void Session::addMigratedPayload | ( | const std::string & | sourceAccount, |
const std::string & | sourceToken, | ||
const std::string & | payloadId | ||
) |
Definition at line 244 of file Session.cc.
References m_session.
void Session::addToMigrationLog | ( | const std::string & | sourceAccount, |
const std::string & | sourceTag, | ||
const std::string & | destinationTag, | ||
cond::MigrationStatus | status | ||
) |
Definition at line 217 of file Session.cc.
References m_session.
bool Session::checkMigrationLog | ( | const std::string & | sourceAccount, |
const std::string & | sourceTag, | ||
std::string & | destinationTag, | ||
cond::MigrationStatus & | status | ||
) |
Definition at line 207 of file Session.cc.
References m_session.
void Session::clearIov | ( | const std::string & | tag | ) |
Definition at line 148 of file Session.cc.
References m_session.
Referenced by cond::persistency::copyTag(), and cond::persistency::migrateTag().
void Session::close | ( | void | ) |
Definition at line 62 of file Session.cc.
References m_session.
Referenced by cond::persistency::PayloadReader::close(), lumiQTWidget.ApplicationWindow::fileQuit(), esMonitoring.AsyncLineReaderMixin::handle_close(), esMonitoring.FDJsonServer::handle_close(), Vispa.Gui.BoxContentDialog.BoxContentDialog::keyPressEvent(), and Vispa.Gui.FindDialog.FindDialog::keyPressEvent().
std::string Session::connectionString | ( | ) |
Definition at line 268 of file Session.cc.
References m_session.
Referenced by cond::persistency::compareTags(), cond::persistency::copyTag(), PCLMetadataWriter::endRun(), cond::persistency::PayloadReader::fetch(), cond::persistency::importIovs(), popcon::PopCon::initialize(), and cond::persistency::validateTag().
coral::ISessionProxy & Session::coralSession | ( | ) |
Definition at line 272 of file Session.cc.
References m_session, and cond::persistency::throwException().
Referenced by nominalSchema().
void Session::createDatabase | ( | ) |
Definition at line 77 of file Session.cc.
References m_session.
Referenced by cond::persistency::copyTag(), cond::persistency::importIovs(), and cond::persistency::migrateTag().
GTEditor Session::createGlobalTag | ( | const std::string & | name | ) |
Definition at line 158 of file Session.cc.
References idDealer::editor, m_session, and cond::persistency::throwException().
|
inline |
Definition at line 198 of file Session.h.
References ora::ClassUtils::demangledName().
Referenced by cond::persistency::copyIov(), cond::persistency::copyTag(), cond::persistency::importIovs(), and cond::persistency::migrateTag().
IOVEditor Session::createIov | ( | const std::string & | payloadType, |
const std::string & | tag, | ||
cond::TimeType | timeType, | ||
cond::SynchronizationType | synchronizationType = cond::SYNCH_ANY |
||
) |
Definition at line 108 of file Session.cc.
References idDealer::editor, m_session, and cond::persistency::throwException().
IOVEditor Session::createIov | ( | const std::string & | payloadType, |
const std::string & | tag, | ||
cond::TimeType | timeType, | ||
cond::SynchronizationType | synchronizationType, | ||
const boost::posix_time::ptime & | creationTime | ||
) |
Definition at line 117 of file Session.cc.
References idDealer::editor, m_session, and cond::persistency::throwException().
IOVEditor Session::createIovForPayload | ( | const Hash & | payloadHash, |
const std::string & | tag, | ||
cond::TimeType | timeType, | ||
cond::SynchronizationType | synchronizationType = cond::SYNCH_ANY |
||
) |
Definition at line 129 of file Session.cc.
References idDealer::editor, m_session, HLT_25ns14e33_v1_cff::payloadType, AlCaHLTBitMon_QueryRunRegistry::string, and cond::persistency::throwException().
GTEditor Session::editGlobalTag | ( | const std::string & | name | ) |
Definition at line 166 of file Session.cc.
References idDealer::editor, cond::persistency::GTEditor::load(), and m_session.
IOVEditor Session::editIov | ( | const std::string & | tag | ) |
Definition at line 141 of file Session.cc.
References idDealer::editor, cond::persistency::IOVEditor::load(), and m_session.
Referenced by cond::persistency::copyIov(), cond::persistency::copyTag(), cond::persistency::importIovs(), and cond::persistency::migrateTag().
bool Session::existsDatabase | ( | ) |
Definition at line 71 of file Session.cc.
References cond::persistency::SessionImpl::DO_NOT_THROW, and m_session.
Referenced by cond::persistency::copyTag(), cond::persistency::importIovs(), and cond::persistency::migrateTag().
bool Session::existsGlobalTag | ( | const std::string & | name | ) |
Definition at line 153 of file Session.cc.
References m_session.
bool Session::existsIov | ( | const std::string & | tag | ) |
Definition at line 97 of file Session.cc.
References m_session.
Referenced by cond::persistency::copyIov(), cond::persistency::copyTag(), cond::persistency::importIovs(), popcon::PopCon::initialize(), and cond::persistency::migrateTag().
|
inline |
Definition at line 215 of file Session.h.
References alignCSCRings::e, fetchPayloadData(), isOraSession(), HLT_25ns14e33_v1_cff::payloadType, run_regression::ret, AlCaHLTBitMon_QueryRunRegistry::string, cond::persistency::throwException(), and cms::Exception::what().
Referenced by cond::persistency::PayloadReader::fetch(), cond::persistency::PayloadProxy< std::vector< cond::Time_t > >::loadPayload(), l1t::DataWriter::readObject(), and popcon::PopConSourceHandler< T >::Ref::Ref().
bool Session::fetchPayloadData | ( | const cond::Hash & | payloadHash, |
std::string & | payloadType, | ||
cond::Binary & | payloadData, | ||
cond::Binary & | streamerInfoData | ||
) |
Definition at line 195 of file Session.cc.
References m_session.
Referenced by cond::persistency::fetch(), cond::persistency::fetchIfExists(), fetchPayload(), and cond::persistency::KeyList::load().
IOVProxy Session::iovProxy | ( | ) |
Definition at line 102 of file Session.cc.
References m_session.
bool Session::isOraSession | ( | ) |
Definition at line 203 of file Session.cc.
References m_session.
Referenced by cond::persistency::fetch(), cond::persistency::fetchIfExists(), fetchPayload(), cond::persistency::KeyList::load(), and storePayload().
bool Session::lookupMigratedPayload | ( | const std::string & | sourceAccount, |
const std::string & | sourceToken, | ||
std::string & | payloadId | ||
) |
Definition at line 236 of file Session.cc.
References m_session.
coral::ISchema & Session::nominalSchema | ( | ) |
Definition at line 277 of file Session.cc.
References coralSession().
Definition at line 56 of file Session.cc.
References m_session, and m_transaction.
std::string Session::parsePoolToken | ( | const std::string & | poolToken | ) |
Definition at line 263 of file Session.cc.
References m_session.
GTProxy Session::readGlobalTag | ( | const std::string & | name | ) |
Definition at line 173 of file Session.cc.
References cond::persistency::GTProxy::load(), and m_session.
Referenced by CondDBESSource::fillTagCollectionFromGT().
GTProxy Session::readGlobalTag | ( | const std::string & | name, |
const std::string & | preFix, | ||
const std::string & | postFix | ||
) |
Definition at line 180 of file Session.cc.
References cond::persistency::GTProxy::load(), and m_session.
IOVProxy Session::readIov | ( | const std::string & | tag, |
bool | full = false |
||
) |
Definition at line 81 of file Session.cc.
References cond::persistency::IOVProxy::load(), and m_session.
Referenced by cond::persistency::copyIov(), cond::persistency::copyTag(), cond::persistency::importIovs(), popcon::PopCon::initialize(), cond::persistency::BasePayloadProxy::loadTag(), cond::persistency::migrateTag(), and l1t::DataWriter::payloadToken().
IOVProxy Session::readIov | ( | const std::string & | tag, |
const boost::posix_time::ptime & | snapshottime, | ||
bool | full = false |
||
) |
Definition at line 88 of file Session.cc.
References cond::persistency::IOVProxy::load(), and m_session.
|
inline |
Definition at line 202 of file Session.h.
References ora::ClassUtils::demangledName(), alignCSCRings::e, isOraSession(), run_regression::ret, cond::serialize(), storePayloadData(), AlCaHLTBitMon_QueryRunRegistry::string, cond::persistency::throwException(), and cms::Exception::what().
Referenced by cond::service::PoolDBOutputService::appendSinceTime(), cond::service::PoolDBOutputService::createNewIOV(), l1t::WriterProxyT< Record, Type >::save(), l1t::DataWriter::writeKeyList(), and cond::service::PoolDBOutputService::writeOne().
|
private |
Definition at line 187 of file Session.cc.
References m_session.
Referenced by storePayload().
Transaction & Session::transaction | ( | ) |
Definition at line 66 of file Session.cc.
References m_transaction.
Referenced by cond::persistency::copyIov(), cond::persistency::copyTag(), cond::persistency::PayloadReader::fetch(), CondDBESSource::fillTagCollectionFromGT(), popcon::PopCon::finalize(), cond::persistency::importIovs(), popcon::PopCon::initialize(), cond::persistency::KeyList::load(), cond::persistency::BasePayloadProxy::loadTag(), cond::persistency::PayloadProxy< std::vector< cond::Time_t > >::make(), cond::persistency::migrateTag(), l1t::DataWriter::payloadToken(), l1t::DataWriter::readObject(), l1t::WriterProxyT< Record, Type >::save(), cond::persistency::BasePayloadProxy::setIntervalFor(), l1t::DataWriter::writeKeyList(), and popcon::PopCon::~PopCon().
void Session::updateMigratedPayload | ( | const std::string & | sourceAccount, |
const std::string & | sourceToken, | ||
const std::string & | payloadId | ||
) |
Definition at line 253 of file Session.cc.
References m_session, and cond::persistency::throwException().
void Session::updateMigrationLog | ( | const std::string & | sourceAccount, |
const std::string & | sourceTag, | ||
cond::MigrationStatus | status | ||
) |
Definition at line 227 of file Session.cc.
References m_session, and cond::persistency::throwException().
|
private |
Definition at line 194 of file Session.h.
Referenced by addMigratedPayload(), addToMigrationLog(), checkMigrationLog(), clearIov(), close(), connectionString(), coralSession(), createDatabase(), createGlobalTag(), createIov(), createIovForPayload(), editGlobalTag(), editIov(), existsDatabase(), existsGlobalTag(), existsIov(), fetchPayloadData(), iovProxy(), isOraSession(), lookupMigratedPayload(), operator=(), parsePoolToken(), readGlobalTag(), readIov(), storePayloadData(), updateMigratedPayload(), and updateMigrationLog().
|
private |
Definition at line 195 of file Session.h.
Referenced by operator=(), and transaction().