#include <ConnectionPool.h>
Public Member Functions | |
void | configure () |
ConnectionPool () | |
std::shared_ptr< coral::ISessionProxy > | createCoralSession (const std::string &connectionString, bool writeCapable=false) |
Session | createReadOnlySession (const std::string &connectionString, const std::string &transactionId) |
Session | createSession (const std::string &connectionString, bool writeCapable=false) |
bool | isLoggingEnabled () const |
void | setAuthenticationPath (const std::string &p) |
void | setAuthenticationSystem (int authSysCode) |
void | setFrontierSecurity (const std::string &signature) |
void | setLogging (bool flag) |
void | setMessageVerbosity (coral::MsgLevel level) |
void | setParameters (const edm::ParameterSet &connectionPset) |
~ConnectionPool () | |
Private Member Functions | |
void | configure (coral::IConnectionServiceConfiguration &coralConfig) |
std::shared_ptr< coral::ISessionProxy > | createCoralSession (const std::string &connectionString, const std::string &transactionId, bool writeCapable=false) |
Session | createSession (const std::string &connectionString, const std::string &transactionId, bool writeCapable=false) |
Private Attributes | |
std::string | m_authPath = std::string( "" ) |
int | m_authSys = 0 |
std::map< std::string, int > | m_dbTypes |
std::string | m_frontierSecurity = std::string( "" ) |
bool | m_loggingEnabled = false |
coral::MsgLevel | m_messageLevel = coral::Error |
cond::CoralServiceManager * | m_pluginManager = 0 |
Definition at line 31 of file ConnectionPool.h.
cond::persistency::ConnectionPool::ConnectionPool | ( | ) |
Definition at line 25 of file ConnectionPool.cc.
References configure(), and m_pluginManager.
cond::persistency::ConnectionPool::~ConnectionPool | ( | ) |
Definition at line 30 of file ConnectionPool.cc.
References m_pluginManager.
void cond::persistency::ConnectionPool::configure | ( | ) |
Definition at line 132 of file ConnectionPool.cc.
Referenced by CondDBESSource::CondDBESSource(), l1t::DataManager::connect(), ConnectionPool(), popcon::L1RPCHwConfigSourceHandler::ConnectOnlineDB(), popcon::RPCEMapSourceHandler::ConnectOnlineDB(), FillInfoPopConSourceHandler::getNewObjects(), DTLVStatusHandler::getNewObjects(), DTHVStatusHandler::getNewObjects(), DTKeyedConfigHandler::getNewObjects(), DTUserKeyedConfigHandler::getNewObjects(), SiStripCoralIface::initialize(), popcon::PopCon::initialize(), L1ConfigOnlineProdBase< TRcd, TData >::L1ConfigOnlineProdBase(), L1ConfigOnlineProdBaseExt< TRcd, TData >::L1ConfigOnlineProdBaseExt(), popcon::PopConBTransitionSourceHandler< T >::PopConBTransitionSourceHandler(), RunInfoRead::readData(), RPCDCCLinkMapHandler::RPCDCCLinkMapHandler(), RPCLBLinkMapHandler::RPCLBLinkMapHandler(), SiStripDetVOffHandler::SiStripDetVOffHandler(), SiStripDetVOffTkMapPlotter::SiStripDetVOffTkMapPlotter(), SiStripDetVOffTrendPlotter::SiStripDetVOffTrendPlotter(), SiStripPayloadHandler< SiStripPayload >::SiStripPayloadHandler(), and SiStripPayloadMapTableCreator::SiStripPayloadMapTableCreator().
|
private |
Definition at line 83 of file ConnectionPool.cc.
References expressLumiProducer_cff::authPath, cond::auth::COND_AUTH_PATH, cond::auth::COND_AUTH_PATH_PROPERTY, cond::auth::COND_AUTH_SYS, cond::persistency::CondDbKey, cond::persistency::CoralXMLFile, instance, m_authPath, m_authSys, m_messageLevel, m_pluginManager, and AlCaHLTBitMon_QueryRunRegistry::string.
std::shared_ptr< coral::ISessionProxy > cond::persistency::ConnectionPool::createCoralSession | ( | const std::string & | connectionString, |
bool | writeCapable = false |
||
) |
Definition at line 170 of file ConnectionPool.cc.
Referenced by SiStripPayloadMapTableCreator::analyze(), createSession(), RPCDCCLinkMapHandler::getNewObjects(), RPCLBLinkMapHandler::getNewObjects(), DTKeyedConfigHandler::getNewObjects(), DTUserKeyedConfigHandler::getNewObjects(), SiStripPayloadHandler< SiStripPayload >::queryConfigMap(), RunInfoRead::readData(), and SiStripPayloadHandler< SiStripPayload >::updateConfigMap().
|
private |
Definition at line 137 of file ConnectionPool.cc.
References cond::auth::COND_READER_ROLE, cond::auth::COND_WRITER_ROLE, cond::persistency::getConnectionParams(), m_frontierSecurity, cond::persistency::TAG::tname, cond::persistency::PAYLOAD::tname, and cond::persistency::IOV::tname.
Session cond::persistency::ConnectionPool::createReadOnlySession | ( | const std::string & | connectionString, |
const std::string & | transactionId | ||
) |
Definition at line 166 of file ConnectionPool.cc.
References createSession().
Referenced by popcon::PopConBTransitionSourceHandler< T >::checkBOn(), CondDBESSource::CondDBESSource(), and CondDBESSource::setIntervalFor().
Session cond::persistency::ConnectionPool::createSession | ( | const std::string & | connectionString, |
bool | writeCapable = false |
||
) |
Definition at line 162 of file ConnectionPool.cc.
Referenced by SiStripDetVOffHandler::analyze(), SiStripDetVOffTkMapPlotter::analyze(), SiStripPayloadHandler< SiStripPayload >::analyze(), SiStripDetVOffTrendPlotter::analyze(), l1t::DataManager::connect(), popcon::L1RPCHwConfigSourceHandler::ConnectOnlineDB(), popcon::RPCEMapSourceHandler::ConnectOnlineDB(), createReadOnlySession(), CondDBESSource::fillTagCollectionFromGT(), FillInfoPopConSourceHandler::getNewObjects(), DTLVStatusHandler::getNewObjects(), DTHVStatusHandler::getNewObjects(), popcon::PopConBTransitionSourceHandler< T >::getObjectsForBTransition(), SiStripCoralIface::initialize(), popcon::PopCon::initialize(), L1ConfigOnlineProdBase< TRcd, TData >::L1ConfigOnlineProdBase(), L1ConfigOnlineProdBaseExt< TRcd, TData >::L1ConfigOnlineProdBaseExt(), and cond::payloadInspector::PlotBase::process().
|
private |
Definition at line 155 of file ConnectionPool.cc.
References createCoralSession().
bool cond::persistency::ConnectionPool::isLoggingEnabled | ( | ) | const |
Definition at line 79 of file ConnectionPool.cc.
References m_loggingEnabled.
void cond::persistency::ConnectionPool::setAuthenticationPath | ( | const std::string & | p | ) |
Definition at line 34 of file ConnectionPool.cc.
References m_authPath, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by l1t::DataManager::connect(), popcon::L1RPCHwConfigSourceHandler::ConnectOnlineDB(), popcon::RPCEMapSourceHandler::ConnectOnlineDB(), FillInfoPopConSourceHandler::getNewObjects(), DTLVStatusHandler::getNewObjects(), DTHVStatusHandler::getNewObjects(), DTKeyedConfigHandler::getNewObjects(), DTUserKeyedConfigHandler::getNewObjects(), SiStripCoralIface::initialize(), popcon::PopCon::initialize(), L1ConfigOnlineProdBase< TRcd, TData >::L1ConfigOnlineProdBase(), L1ConfigOnlineProdBaseExt< TRcd, TData >::L1ConfigOnlineProdBaseExt(), L1RCTOmdsFedVectorProducer::produce(), and setParameters().
void cond::persistency::ConnectionPool::setAuthenticationSystem | ( | int | authSysCode | ) |
Definition at line 38 of file ConnectionPool.cc.
References m_authSys.
Referenced by DTKeyedConfigHandler::getNewObjects(), DTUserKeyedConfigHandler::getNewObjects(), popcon::PopCon::initialize(), and setParameters().
void cond::persistency::ConnectionPool::setFrontierSecurity | ( | const std::string & | signature | ) |
Definition at line 42 of file ConnectionPool.cc.
References m_frontierSecurity, and signature.
Referenced by setParameters().
void cond::persistency::ConnectionPool::setLogging | ( | bool | flag | ) |
Definition at line 46 of file ConnectionPool.cc.
References RemoveAddSevLevel::flag, and m_loggingEnabled.
Referenced by setParameters().
void cond::persistency::ConnectionPool::setMessageVerbosity | ( | coral::MsgLevel | level | ) |
Definition at line 175 of file ConnectionPool.cc.
References hcalDigis_cfi::level, and m_messageLevel.
Referenced by l1t::DataManager::connect(), FillInfoPopConSourceHandler::getNewObjects(), and setParameters().
void cond::persistency::ConnectionPool::setParameters | ( | const edm::ParameterSet & | connectionPset | ) |
Definition at line 50 of file ConnectionPool.cc.
References Debug, edm::ParameterSet::getUntrackedParameter(), hcalDigis_cfi::level, m_authPath, m_authSys, m_frontierSecurity, m_loggingEnabled, m_messageLevel, patTestJEC_local_cfi::messageLevel, setAuthenticationPath(), setAuthenticationSystem(), setFrontierSecurity(), setLogging(), setMessageVerbosity(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by CondDBESSource::CondDBESSource(), cond::service::PoolDBOutputService::PoolDBOutputService(), popcon::PopConBTransitionSourceHandler< T >::PopConBTransitionSourceHandler(), RunInfoRead::readData(), RPCDCCLinkMapHandler::RPCDCCLinkMapHandler(), RPCLBLinkMapHandler::RPCLBLinkMapHandler(), SiStripDetVOffHandler::SiStripDetVOffHandler(), SiStripDetVOffTkMapPlotter::SiStripDetVOffTkMapPlotter(), SiStripDetVOffTrendPlotter::SiStripDetVOffTrendPlotter(), SiStripPayloadHandler< SiStripPayload >::SiStripPayloadHandler(), and SiStripPayloadMapTableCreator::SiStripPayloadMapTableCreator().
|
private |
Definition at line 57 of file ConnectionPool.h.
Referenced by configure(), setAuthenticationPath(), and setParameters().
|
private |
Definition at line 58 of file ConnectionPool.h.
Referenced by configure(), setAuthenticationSystem(), and setParameters().
|
private |
Definition at line 66 of file ConnectionPool.h.
|
private |
Definition at line 63 of file ConnectionPool.h.
Referenced by createCoralSession(), setFrontierSecurity(), and setParameters().
|
private |
Definition at line 60 of file ConnectionPool.h.
Referenced by isLoggingEnabled(), setLogging(), and setParameters().
|
private |
Definition at line 59 of file ConnectionPool.h.
Referenced by configure(), setMessageVerbosity(), and setParameters().
|
private |
Definition at line 65 of file ConnectionPool.h.
Referenced by configure(), ConnectionPool(), and ~ConnectionPool().