#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) |
IOVEditor | createIov (const std::string &payloadType, const std::string &tag, cond::TimeType timeType, cond::SynchronizationType synchronizationType, const boost::posix_time::ptime &creationTime) |
IOVEditor | createIov (const std::string &payloadType, const std::string &tag, cond::TimeType timeType, cond::SynchronizationType synchronizationType=cond::SYNCH_ANY) |
template<typename T > | |
IOVEditor | createIov (const std::string &tag, cond::TimeType timeType, cond::SynchronizationType synchronizationType=cond::SYNCH_ANY) |
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) |
RunInfoEditor | editRunInfo () |
bool | existsDatabase () |
bool | existsGlobalTag (const std::string &name) |
bool | existsIov (const std::string &tag) |
template<typename T > | |
std::unique_ptr< T > | fetchPayload (const cond::Hash &payloadHash) |
bool | fetchPayloadData (const cond::Hash &payloadHash, std::string &payloadType, cond::Binary &payloadData, cond::Binary &streamerInfoData) |
cond::RunInfo_t | getLastRun () |
RunInfoProxy | getRunInfo (cond::Time_t start, cond::Time_t end) |
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) |
IOVProxy | readIov (const std::string &tag, const boost::posix_time::ptime &snapshottime) |
Session () | |
Session (const Session &rhs) | |
Session (const std::shared_ptr< SessionImpl > &sessionImpl) | |
template<typename T > | |
cond::Hash | storePayload (const T &payload, const boost::posix_time::ptime &creationTime=boost::posix_time::microsec_clock::universal_time()) |
cond::Hash | storePayloadData (const std::string &payloadObjectType, const std::pair< Binary, Binary > &payloadAndStreamerInfoData, const boost::posix_time::ptime &creationTime) |
Transaction & | transaction () |
virtual | ~Session () |
Private Attributes | |
std::shared_ptr< SessionImpl > | m_session |
Transaction | m_transaction |
Session::Session | ( | ) |
Definition at line 35 of file Session.cc.
|
explicit |
Definition at line 37 of file Session.cc.
Session::Session | ( | const Session & | rhs | ) |
Definition at line 40 of file Session.cc.
|
virtual |
Definition at line 42 of file Session.cc.
void Session::clearIov | ( | const std::string & | tag | ) |
Definition at line 137 of file Session.cc.
References m_session, and GlobalPosition_Frontier_DevDB_cff::tag.
void Session::close | ( | void | ) |
Definition at line 50 of file Session.cc.
References m_session.
Referenced by cond::persistency::PayloadReader::close(), FillInfoPopConSourceHandler::getNewObjects(), DTLVStatusHandler::getNewObjects(), DTHVStatusHandler::getNewObjects(), esMonitoring.AsyncLineReaderMixin::handle_close(), esMonitoring.FDJsonServer::handle_close(), and l1t::DataManager::~DataManager().
std::string Session::connectionString | ( | ) |
Definition at line 216 of file Session.cc.
References m_session.
Referenced by PCLMetadataWriter::endRun(), cond::persistency::PayloadReader::fetch(), cond::persistency::importIovs(), and popcon::PopCon::initialize().
coral::ISessionProxy & Session::coralSession | ( | ) |
Definition at line 218 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(), LHCInfoPopConSourceHandler::getCTTPSData(), LHCInfoPopConSourceHandler::getDipData(), FillInfoPopConSourceHandler::getNewObjects(), L1CaloHcalScaleConfigOnlineProd::newObject(), nominalSchema(), and L1RCTOmdsFedVectorProducer::produce().
void Session::createDatabase | ( | ) |
Definition at line 61 of file Session.cc.
References m_session.
Referenced by cond::persistency::importIovs().
GTEditor Session::createGlobalTag | ( | const std::string & | name | ) |
Definition at line 147 of file Session.cc.
References m_session, Skims_PA_cff::name, 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 102 of file Session.cc.
References m_session, HLT_2018_cff::payloadType, GlobalPosition_Frontier_DevDB_cff::tag, and cond::persistency::throwException().
IOVEditor Session::createIov | ( | const std::string & | payloadType, |
const std::string & | tag, | ||
cond::TimeType | timeType, | ||
cond::SynchronizationType | synchronizationType = cond::SYNCH_ANY |
||
) |
Definition at line 91 of file Session.cc.
References m_session, HLT_2018_cff::payloadType, GlobalPosition_Frontier_DevDB_cff::tag, and cond::persistency::throwException().
|
inline |
Definition at line 179 of file Session.h.
References GlobalPosition_Frontier_DevDB_cff::tag.
Referenced by SiStripDetVOffHandler::analyze(), SiStripPayloadHandler< SiStripPayload >::analyze(), cond::persistency::copyIov(), popcon::PopConBTransitionSourceHandler< T >::getObjectsForBTransition(), popcon::PopConESTransitionSourceHandler< T >::getObjectsForESTransition(), and cond::persistency::importIovs().
IOVEditor Session::createIovForPayload | ( | const Hash & | payloadHash, |
const std::string & | tag, | ||
cond::TimeType | timeType, | ||
cond::SynchronizationType | synchronizationType = cond::SYNCH_ANY |
||
) |
Definition at line 114 of file Session.cc.
References m_session, HLT_2018_cff::payloadType, AlCaHLTBitMon_QueryRunRegistry::string, GlobalPosition_Frontier_DevDB_cff::tag, and cond::persistency::throwException().
GTEditor Session::editGlobalTag | ( | const std::string & | name | ) |
Definition at line 156 of file Session.cc.
References cond::persistency::GTEditor::load(), m_session, and Skims_PA_cff::name.
IOVEditor Session::editIov | ( | const std::string & | tag | ) |
Definition at line 130 of file Session.cc.
References cond::persistency::IOVEditor::load(), m_session, and GlobalPosition_Frontier_DevDB_cff::tag.
Referenced by SiStripDetVOffHandler::analyze(), cond::persistency::copyIov(), popcon::PopConBTransitionSourceHandler< T >::getObjectsForBTransition(), popcon::PopConESTransitionSourceHandler< T >::getObjectsForESTransition(), and cond::persistency::importIovs().
RunInfoEditor Session::editRunInfo | ( | ) |
Definition at line 210 of file Session.cc.
References cond::persistency::RunInfoEditor::init(), and m_session.
Referenced by RunInfoUpdate::appendNewRun(), and RunInfoUpdate::import().
bool Session::existsDatabase | ( | ) |
Definition at line 55 of file Session.cc.
References cond::persistency::SessionImpl::DO_NOT_THROW, and m_session.
Referenced by SiStripDetVOffHandler::analyze(), cond::persistency::importIovs(), and popcon::PopCon::initialize().
bool Session::existsGlobalTag | ( | const std::string & | name | ) |
Definition at line 142 of file Session.cc.
References m_session, and Skims_PA_cff::name.
bool Session::existsIov | ( | const std::string & | tag | ) |
Definition at line 77 of file Session.cc.
References m_session, and GlobalPosition_Frontier_DevDB_cff::tag.
Referenced by SiStripDetVOffHandler::analyze(), cond::persistency::copyIov(), popcon::PopConBTransitionSourceHandler< T >::getObjectsForBTransition(), popcon::PopConESTransitionSourceHandler< T >::getObjectsForESTransition(), cond::persistency::importIovs(), and popcon::PopCon::initialize().
|
inline |
Definition at line 213 of file Session.h.
References MillePedeFileConverter_cfg::e, fetchPayloadData(), HLT_2018_cff::payloadType, runTheMatrix::ret, AlCaHLTBitMon_QueryRunRegistry::string, and cond::persistency::throwException().
Referenced by SiStripDetVOffHandler::analyze(), SiStripDetVOffTkMapPlotter::analyze(), SiStripDetVOffPrinter::analyze(), SiStripPayloadHandler< SiStripPayload >::analyze(), SiStripDetVOffTrendPlotter::analyze(), BeamSpotRcdPrinter::analyze(), popcon::PopConBTransitionSourceHandler< T >::checkBOn(), cond::persistency::PayloadReader::fetch(), cond::payloadInspector::PlotBase::fetchPayload(), LHCInfoPopConSourceHandler::getNewObjects(), RunInfoUpdate::import(), cond::persistency::PayloadProxy< std::vector< cond::Time_t > >::loadPayload(), l1t::DataWriterExt::readObject(), 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 185 of file Session.cc.
References m_session, and HLT_2018_cff::payloadType.
Referenced by cond::persistency::fetch(), cond::persistency::fetchIfExists(), fetchPayload(), and cond::persistency::importPayload().
cond::RunInfo_t Session::getLastRun | ( | ) |
Definition at line 201 of file Session.cc.
References m_session, runTheMatrix::ret, and cond::persistency::throwException().
Referenced by cond::service::OnlineDBOutputService::OnlineDBOutputService().
RunInfoProxy Session::getRunInfo | ( | cond::Time_t | start, |
cond::Time_t | end | ||
) |
Definition at line 193 of file Session.cc.
References end, cond::persistency::RunInfoProxy::load(), m_session, and cond::persistency::throwException().
Referenced by cond::payloadInspector::TimeHistoryPlot< PayloadType, Y >::fill().
coral::ISchema & Session::nominalSchema | ( | ) |
Definition at line 224 of file Session.cc.
References coralSession().
Referenced by DTHVStatusHandler::checkForPeriod(), DTHVStatusHandler::checkNewData(), DTHVStatusHandler::createSnapshot(), DTHVStatusHandler::dumpHVAliases(), DTHVStatusHandler::dumpSnapshot(), DTHVStatusHandler::getChannelMap(), DTHVStatusHandler::getChannelSplit(), LHCInfoPopConSourceHandler::getEcalData(), DTHVStatusHandler::getLayerSplit(), LHCInfoPopConSourceHandler::getLumiData(), FillInfoPopConSourceHandler::getNewObjects(), LHCInfoImpl::makeFillDataQuery(), and DTHVStatusHandler::recoverSnapshot().
Definition at line 44 of file Session.cc.
References m_session, and m_transaction.
GTProxy Session::readGlobalTag | ( | const std::string & | name | ) |
Definition at line 163 of file Session.cc.
References cond::persistency::GTProxy::load(), m_session, and Skims_PA_cff::name.
Referenced by CondDBESSource::fillTagCollectionFromGT().
GTProxy Session::readGlobalTag | ( | const std::string & | name, |
const std::string & | preFix, | ||
const std::string & | postFix | ||
) |
Definition at line 170 of file Session.cc.
References cond::persistency::GTProxy::load(), m_session, and Skims_PA_cff::name.
IOVProxy Session::readIov | ( | const std::string & | tag | ) |
Definition at line 63 of file Session.cc.
References cond::persistency::IOVProxy::load(), m_session, and JetPartonCorrections_cff::tagName.
Referenced by SiStripDetVOffHandler::analyze(), SiStripDetVOffTkMapPlotter::analyze(), SiStripDetVOffPrinter::analyze(), SiStripPayloadHandler< SiStripPayload >::analyze(), SiStripDetVOffTrendPlotter::analyze(), BeamSpotRcdPrinter::analyze(), popcon::PopConBTransitionSourceHandler< T >::checkBOn(), popcon::PopConESTransitionSourceHandler< T >::checkLowGain(), cond::persistency::copyIov(), cond::payloadInspector::PlotBase::exec_process(), popcon::PopConBTransitionSourceHandler< T >::getObjectsForBTransition(), popcon::PopConESTransitionSourceHandler< T >::getObjectsForESTransition(), cond::payloadInspector::PlotBase::getTagInfo(), RunInfoUpdate::import(), cond::persistency::importIovs(), popcon::PopCon::initialize(), l1t::DataWriterExt::payloadToken(), l1t::DataWriter::payloadToken(), and cond::service::OnlineDBOutputService::preLoadIov().
IOVProxy Session::readIov | ( | const std::string & | tag, |
const boost::posix_time::ptime & | snapshottime | ||
) |
Definition at line 70 of file Session.cc.
References cond::persistency::IOVProxy::load(), m_session, and JetPartonCorrections_cff::tagName.
|
inline |
Definition at line 186 of file Session.h.
References MillePedeFileConverter_cfg::e, jets_cff::payload, runTheMatrix::ret, cond::serialize(), storePayloadData(), AlCaHLTBitMon_QueryRunRegistry::string, and cond::persistency::throwException().
Referenced by SiStripDetVOffHandler::analyze(), SiStripPayloadHandler< SiStripPayload >::analyze(), cond::service::PoolDBOutputService::appendSinceTime(), cond::service::PoolDBOutputService::createNewIOV(), l1t::WriterProxyT< Record, Type >::save(), l1t::DataWriterExt::writeKeyList(), l1t::DataWriter::writeKeyList(), and cond::service::PoolDBOutputService::writeOne().
cond::Hash Session::storePayloadData | ( | const std::string & | payloadObjectType, |
const std::pair< Binary, Binary > & | payloadAndStreamerInfoData, | ||
const boost::posix_time::ptime & | creationTime | ||
) |
Definition at line 177 of file Session.cc.
References m_session.
Referenced by cond::persistency::importPayload(), and storePayload().
Transaction & Session::transaction | ( | ) |
Definition at line 52 of file Session.cc.
References m_transaction.
Referenced by SiStripDetVOffHandler::analyze(), SiStripDetVOffTkMapPlotter::analyze(), SiStripDetVOffPrinter::analyze(), SiStripPayloadHandler< SiStripPayload >::analyze(), SiStripDetVOffTrendPlotter::analyze(), BeamSpotRcdPrinter::analyze(), cond::service::PoolDBOutputService::appendSinceTime(), popcon::PopConBTransitionSourceHandler< T >::checkBOn(), popcon::PopConESTransitionSourceHandler< T >::checkLowGain(), l1t::OMDSReader::connect(), cond::persistency::copyIov(), cond::service::PoolDBOutputService::createNewIOV(), cond::payloadInspector::PlotBase::exec_process(), cond::persistency::PayloadReader::fetch(), CondDBESSource::fillTagCollectionFromGT(), popcon::PopCon::finalize(), FillInfoPopConSourceHandler::getNewObjects(), LHCInfoPopConSourceHandler::getNewObjects(), DTLVStatusHandler::getNewObjects(), DTHVStatusHandler::getNewObjects(), popcon::PopConBTransitionSourceHandler< T >::getObjectsForBTransition(), popcon::PopConESTransitionSourceHandler< T >::getObjectsForESTransition(), cond::persistency::importIovs(), SiStripCoralIface::initialize(), popcon::PopCon::initialize(), cond::persistency::PayloadProxy< std::vector< cond::Time_t > >::make(), l1t::OMDSReader::OMDSReader(), l1t::DataWriterExt::payloadToken(), l1t::DataWriter::payloadToken(), cond::service::OnlineDBOutputService::preLoadIov(), L1RCTOmdsFedVectorProducer::produce(), l1t::DataWriter::readObject(), l1t::WriterProxyT< Record, Type >::save(), l1t::DataWriter::writeKeyList(), l1t::DataWriterExt::writeKeyList(), cond::service::PoolDBOutputService::writeOne(), l1t::DataWriter::writePayload(), and popcon::PopCon::~PopCon().
|
private |
Definition at line 174 of file Session.h.
Referenced by clearIov(), close(), connectionString(), coralSession(), createDatabase(), createGlobalTag(), createIov(), createIovForPayload(), editGlobalTag(), editIov(), editRunInfo(), existsDatabase(), existsGlobalTag(), existsIov(), fetchPayloadData(), getLastRun(), getRunInfo(), operator=(), readGlobalTag(), readIov(), and storePayloadData().
|
private |
Definition at line 175 of file Session.h.
Referenced by operator=(), and transaction().