#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, BackendType backType=DEFAULT_DB) |
bool | isLoggingEnabled () const |
void | setAuthenticationPath (const std::string &p) |
void | setAuthenticationSystem (int authSysCode) |
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, BackendType backType=DEFAULT_DB) |
Private Attributes | |
std::string | m_authPath |
int | m_authSys = 0 |
std::map< std::string, int > | m_dbTypes |
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 30 of file ConnectionPool.cc.
References configure(), and m_pluginManager.
cond::persistency::ConnectionPool::~ConnectionPool | ( | ) |
Definition at line 35 of file ConnectionPool.cc.
References m_pluginManager.
void cond::persistency::ConnectionPool::configure | ( | ) |
|
private |
Definition at line 80 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 199 of file ConnectionPool.cc.
Referenced by createSession(), DTUserKeyedConfigHandler::getNewObjects(), and DTKeyedConfigHandler::getNewObjects().
|
private |
Definition at line 135 of file ConnectionPool.cc.
References cond::Auth::COND_READER_ROLE, cond::Auth::COND_WRITER_ROLE, cond::persistency::getConnectionParams(), cond::persistency::ORA_IOV_TABLE_1(), cond::persistency::ORA_IOV_TABLE_2(), cond::persistency::ORA_IOV_TABLE_3(), cond::persistency::POOL_IOV_TABLE_DATA(), 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 195 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 , |
||
BackendType | backType = DEFAULT_DB |
||
) |
Definition at line 191 of file ConnectionPool.cc.
Referenced by createReadOnlySession(), cond::persistency::exportTagToFile(), CondDBESSource::fillTagCollectionFromGT(), popcon::PopCon::initialize(), and L1ConfigOnlineProdBase< TRcd, TData >::L1ConfigOnlineProdBase().
|
private |
Definition at line 157 of file ConnectionPool.cc.
References cond::persistency::checkBackendType(), createCoralSession(), cond::persistency::getConnectionParams(), m_dbTypes, cond::persistency::ORA_IOV_TABLE_1(), cond::persistency::ORA_IOV_TABLE_2(), cond::persistency::ORA_IOV_TABLE_3(), cond::persistency::POOL_IOV_TABLE_DATA(), cond::persistency::TAG::tname, cond::persistency::PAYLOAD::tname, cond::persistency::IOV::tname, and cond::UNKNOWN_DB.
bool cond::persistency::ConnectionPool::isLoggingEnabled | ( | ) | const |
Definition at line 76 of file ConnectionPool.cc.
References m_loggingEnabled.
void cond::persistency::ConnectionPool::setAuthenticationPath | ( | const std::string & | p | ) |
Definition at line 39 of file ConnectionPool.cc.
References m_authPath, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by DTKeyedConfigHandler::getNewObjects(), DTUserKeyedConfigHandler::getNewObjects(), popcon::PopCon::initialize(), L1ConfigOnlineProdBase< TRcd, TData >::L1ConfigOnlineProdBase(), and setParameters().
void cond::persistency::ConnectionPool::setAuthenticationSystem | ( | int | authSysCode | ) |
Definition at line 43 of file ConnectionPool.cc.
References m_authSys.
Referenced by DTKeyedConfigHandler::getNewObjects(), DTUserKeyedConfigHandler::getNewObjects(), popcon::PopCon::initialize(), and setParameters().
void cond::persistency::ConnectionPool::setLogging | ( | bool | flag | ) |
Definition at line 47 of file ConnectionPool.cc.
References m_loggingEnabled.
Referenced by setParameters().
void cond::persistency::ConnectionPool::setMessageVerbosity | ( | coral::MsgLevel | level | ) |
Definition at line 204 of file ConnectionPool.cc.
References testEve_cfg::level, and m_messageLevel.
Referenced by setParameters().
void cond::persistency::ConnectionPool::setParameters | ( | const edm::ParameterSet & | connectionPset | ) |
Definition at line 51 of file ConnectionPool.cc.
References Debug, edm::ParameterSet::getUntrackedParameter(), testEve_cfg::level, setAuthenticationPath(), setAuthenticationSystem(), setLogging(), setMessageVerbosity(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by CondDBESSource::CondDBESSource().
|
private |
Definition at line 57 of file ConnectionPool.h.
Referenced by configure(), and setAuthenticationPath().
|
private |
Definition at line 58 of file ConnectionPool.h.
Referenced by configure(), and setAuthenticationSystem().
|
private |
Definition at line 63 of file ConnectionPool.h.
Referenced by createSession().
|
private |
Definition at line 60 of file ConnectionPool.h.
Referenced by isLoggingEnabled(), and setLogging().
|
private |
Definition at line 59 of file ConnectionPool.h.
Referenced by configure(), and setMessageVerbosity().
|
private |
Definition at line 62 of file ConnectionPool.h.
Referenced by configure(), ConnectionPool(), and ~ConnectionPool().