#include <ConnectionPool.h>
Public Member Functions | |
void | configure () |
ConnectionPool () | |
boost::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) |
boost::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(), RunInfoRead::readData(), SiStripDetVOffHandler::SiStripDetVOffHandler(), SiStripDetVOffTkMapPlotter::SiStripDetVOffTkMapPlotter(), SiStripDetVOffTrendPlotter::SiStripDetVOffTrendPlotter(), SiStripPayloadHandler< SiStripPayload >::SiStripPayloadHandler(), and SiStripPayloadMapTableCreator::SiStripPayloadMapTableCreator().
|
private |
Definition at line 83 of file ConnectionPool.cc.
References builder_last_value_cfg::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.
boost::shared_ptr< coral::ISessionProxy > cond::persistency::ConnectionPool::createCoralSession | ( | const std::string & | connectionString, |
bool | writeCapable = false |
||
) |
Definition at line 171 of file ConnectionPool.cc.
Referenced by SiStripPayloadMapTableCreator::analyze(), createSession(), DTKeyedConfigHandler::getNewObjects(), DTUserKeyedConfigHandler::getNewObjects(), and RunInfoRead::readData().
|
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 167 of file ConnectionPool.cc.
References createSession().
Referenced by CondDBESSource::CondDBESSource(), and CondDBESSource::setIntervalFor().
Session cond::persistency::ConnectionPool::createSession | ( | const std::string & | connectionString, |
bool | writeCapable = false |
||
) |
Definition at line 163 of file ConnectionPool.cc.
Referenced by SiStripDetVOffHandler::analyze(), SiStripDetVOffTkMapPlotter::analyze(), SiStripDetVOffTrendPlotter::analyze(), l1t::DataManager::connect(), popcon::L1RPCHwConfigSourceHandler::ConnectOnlineDB(), popcon::RPCEMapSourceHandler::ConnectOnlineDB(), createReadOnlySession(), CondDBESSource::fillTagCollectionFromGT(), FillInfoPopConSourceHandler::getNewObjects(), DTLVStatusHandler::getNewObjects(), DTHVStatusHandler::getNewObjects(), SiStripCoralIface::initialize(), popcon::PopCon::initialize(), L1ConfigOnlineProdBase< TRcd, TData >::L1ConfigOnlineProdBase(), and L1ConfigOnlineProdBaseExt< TRcd, TData >::L1ConfigOnlineProdBaseExt().
|
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 m_loggingEnabled.
Referenced by setParameters().
void cond::persistency::ConnectionPool::setMessageVerbosity | ( | coral::MsgLevel | level | ) |
Definition at line 176 of file ConnectionPool.cc.
References testEve_cfg::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(), testEve_cfg::level, m_authPath, m_authSys, m_frontierSecurity, m_loggingEnabled, m_messageLevel, setAuthenticationPath(), setAuthenticationSystem(), setFrontierSecurity(), setLogging(), setMessageVerbosity(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by CondDBESSource::CondDBESSource(), RunInfoRead::readData(), 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().