#include <Session.h>
Public Member Functions | |
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 () |
coral::ISchema & | nominalSchema () |
Session & | operator= (const Session &rhs) |
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 () |
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::clearIov | ( | const std::string & | tag | ) |
Definition at line 148 of file Session.cc.
References m_session.
Referenced by cond::persistency::copyTag().
void Session::close | ( | void | ) |
Definition at line 62 of file Session.cc.
References m_session.
Referenced by cond::persistency::PayloadReader::close(), lumiQTWidget.ApplicationWindow::fileQuit(), FillInfoPopConSourceHandler::getNewObjects(), DTLVStatusHandler::getNewObjects(), DTHVStatusHandler::getNewObjects(), esMonitoring.AsyncLineReaderMixin::handle_close(), esMonitoring.FDJsonServer::handle_close(), Vispa.Gui.BoxContentDialog.BoxContentDialog::keyPressEvent(), Vispa.Gui.FindDialog.FindDialog::keyPressEvent(), and l1t::DataManager::~DataManager().
std::string Session::connectionString | ( | ) |
Definition at line 203 of file Session.cc.
References m_session.
Referenced by cond::persistency::copyTag(), PCLMetadataWriter::endRun(), cond::persistency::PayloadReader::fetch(), cond::persistency::importIovs(), and popcon::PopCon::initialize().
coral::ISessionProxy & Session::coralSession | ( | ) |
Definition at line 207 of file Session.cc.
References m_session, and cond::persistency::throwException().
Referenced by l1t::OMDSReader::basicQuery(), l1t::OMDSReader::basicQueryGenericKey(), l1t::OMDSReader::basicQueryView(), l1t::OMDSReader::columnNames(), l1t::OMDSReader::columnNamesView(), SiStripCoralIface::doNameQuery(), SiStripCoralIface::doQuery(), SiStripCoralIface::doSettingsQuery(), FillInfoPopConSourceHandler::getNewObjects(), L1CaloHcalScaleConfigOnlineProd::newObject(), and nominalSchema().
void Session::createDatabase | ( | ) |
Definition at line 77 of file Session.cc.
References m_session.
Referenced by cond::persistency::copyTag(), and cond::persistency::importIovs().
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 173 of file Session.h.
References ora::ClassUtils::demangledName().
Referenced by SiStripDetVOffHandler::analyze(), SiStripPayloadHandler< SiStripPayload >::analyze(), cond::persistency::copyIov(), cond::persistency::copyTag(), and cond::persistency::importIovs().
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_25ns10e33_v2_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 SiStripDetVOffHandler::analyze(), cond::persistency::copyIov(), cond::persistency::copyTag(), and cond::persistency::importIovs().
bool Session::existsDatabase | ( | ) |
Definition at line 71 of file Session.cc.
References cond::persistency::SessionImpl::DO_NOT_THROW, and m_session.
Referenced by SiStripDetVOffHandler::analyze(), cond::persistency::copyTag(), and cond::persistency::importIovs().
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 SiStripDetVOffHandler::analyze(), cond::persistency::copyIov(), cond::persistency::copyTag(), cond::persistency::importIovs(), and popcon::PopCon::initialize().
|
inline |
Definition at line 190 of file Session.h.
References alignCSCRings::e, fetchPayloadData(), HLT_25ns10e33_v2_cff::payloadType, runTheMatrix::ret, AlCaHLTBitMon_QueryRunRegistry::string, cond::persistency::throwException(), and cms::Exception::what().
Referenced by SiStripDetVOffHandler::analyze(), SiStripDetVOffTkMapPlotter::analyze(), SiStripPayloadHandler< SiStripPayload >::analyze(), SiStripDetVOffTrendPlotter::analyze(), 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.
coral::ISchema & Session::nominalSchema | ( | ) |
Definition at line 212 of file Session.cc.
References coralSession().
Referenced by DTHVStatusHandler::checkForPeriod(), DTHVStatusHandler::checkNewData(), DTHVStatusHandler::createSnapshot(), DTHVStatusHandler::dumpHVAliases(), DTHVStatusHandler::dumpSnapshot(), DTHVStatusHandler::getChannelMap(), DTHVStatusHandler::getChannelSplit(), DTHVStatusHandler::getLayerSplit(), FillInfoPopConSourceHandler::getNewObjects(), and DTHVStatusHandler::recoverSnapshot().
Definition at line 56 of file Session.cc.
References m_session, and m_transaction.
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 SiStripDetVOffHandler::analyze(), SiStripDetVOffTkMapPlotter::analyze(), SiStripPayloadHandler< SiStripPayload >::analyze(), SiStripDetVOffTrendPlotter::analyze(), cond::persistency::copyIov(), cond::persistency::copyTag(), cond::persistency::importIovs(), popcon::PopCon::initialize(), cond::persistency::BasePayloadProxy::loadTag(), 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 177 of file Session.h.
References ora::ClassUtils::demangledName(), alignCSCRings::e, runTheMatrix::ret, cond::serialize(), storePayloadData(), AlCaHLTBitMon_QueryRunRegistry::string, cond::persistency::throwException(), and cms::Exception::what().
Referenced by SiStripDetVOffHandler::analyze(), SiStripPayloadHandler< SiStripPayload >::analyze(), 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 SiStripDetVOffHandler::analyze(), SiStripDetVOffTkMapPlotter::analyze(), SiStripDetVOffTrendPlotter::analyze(), SiStripPayloadHandler< SiStripPayload >::analyze(), l1t::OMDSReader::connect(), cond::persistency::copyIov(), cond::persistency::copyTag(), cond::persistency::PayloadReader::fetch(), CondDBESSource::fillTagCollectionFromGT(), popcon::PopCon::finalize(), FillInfoPopConSourceHandler::getNewObjects(), DTLVStatusHandler::getNewObjects(), DTHVStatusHandler::getNewObjects(), cond::persistency::importIovs(), SiStripCoralIface::initialize(), popcon::PopCon::initialize(), cond::persistency::KeyList::load(), cond::persistency::BasePayloadProxy::loadTag(), cond::persistency::PayloadProxy< std::vector< cond::Time_t > >::make(), l1t::OMDSReader::OMDSReader(), l1t::DataWriter::payloadToken(), l1t::DataWriter::readObject(), l1t::WriterProxyT< Record, Type >::save(), cond::persistency::BasePayloadProxy::setIntervalFor(), l1t::DataWriter::writeKeyList(), and popcon::PopCon::~PopCon().
|
private |
Definition at line 169 of file Session.h.
Referenced by clearIov(), close(), connectionString(), coralSession(), createDatabase(), createGlobalTag(), createIov(), createIovForPayload(), editGlobalTag(), editIov(), existsDatabase(), existsGlobalTag(), existsIov(), fetchPayloadData(), iovProxy(), operator=(), readGlobalTag(), readIov(), and storePayloadData().
|
private |
Definition at line 170 of file Session.h.
Referenced by operator=(), and transaction().