#include <CondCore/DBCommon/interface/SessionConfiguration.h>
Public Member Functions | |
cond::AuthenticationMethod | authenticationMethod () const |
std::string | authName () const |
std::string | blobStreamerName () const |
ConnectionConfiguration * | connectionConfiguration () |
bool | hasBlobStreamService () const |
bool | isSQLMonitoringOn () const |
cond::MessageLevel | messageLevel () const |
SessionConfiguration () | |
void | setAuthenticationMethod (cond::AuthenticationMethod m) |
void | setAuthenticationPath (const std::string &p) |
void | setBlobStreamer (const std::string &name) |
void | setMessageLevel (cond::MessageLevel l) |
void | startSQLMonitoring () |
~SessionConfiguration () | |
Private Attributes | |
cond::AuthenticationMethod | m_authMethod |
std::string | m_authPath |
std::string | m_blobstreamerName |
cond::ConnectionConfiguration * | m_conConfig |
bool | m_hasBlobstreamer |
bool | m_isSQLMonitoringOn |
cond::MessageLevel | m_messageLevel |
Definition at line 18 of file SessionConfiguration.h.
SessionConfiguration::SessionConfiguration | ( | ) |
Definition at line 4 of file SessionConfiguration.cc.
00004 :m_authMethod(cond::Env),m_hasBlobstreamer(false),m_blobstreamerName(""),m_messageLevel(cond::Error),m_conConfig(new ConnectionConfiguration),m_isSQLMonitoringOn(false){}
SessionConfiguration::~SessionConfiguration | ( | ) |
Definition at line 5 of file SessionConfiguration.cc.
References m_conConfig.
00005 { 00006 delete m_conConfig; 00007 }
cond::AuthenticationMethod SessionConfiguration::authenticationMethod | ( | ) | const |
Definition at line 34 of file SessionConfiguration.cc.
References m_authMethod.
Referenced by cond::DBSession::open().
00034 { 00035 return m_authMethod; 00036 }
std::string SessionConfiguration::authName | ( | ) | const |
Definition at line 50 of file SessionConfiguration.cc.
References m_authPath.
Referenced by cond::DBSession::open().
00050 { 00051 return m_authPath; 00052 }
std::string SessionConfiguration::blobStreamerName | ( | ) | const |
Definition at line 42 of file SessionConfiguration.cc.
References m_blobstreamerName.
Referenced by cond::DBSession::open().
00042 { 00043 return m_blobstreamerName; 00044 }
cond::ConnectionConfiguration * SessionConfiguration::connectionConfiguration | ( | ) |
Definition at line 9 of file SessionConfiguration.cc.
References m_conConfig.
Referenced by cond::ConfigSessionFromParameterSet::ConfigSessionFromParameterSet(), cond::Connection::connect(), l1t::DataManager::DataManager(), and cond::DBSession::open().
00009 { 00010 return m_conConfig; 00011 }
bool SessionConfiguration::hasBlobStreamService | ( | ) | const |
Definition at line 38 of file SessionConfiguration.cc.
References m_hasBlobstreamer.
Referenced by cond::DBSession::open().
00038 { 00039 return m_hasBlobstreamer; 00040 }
bool SessionConfiguration::isSQLMonitoringOn | ( | ) | const |
Definition at line 54 of file SessionConfiguration.cc.
References m_isSQLMonitoringOn.
Referenced by cond::DBSession::open().
00054 { 00055 return m_isSQLMonitoringOn; 00056 }
cond::MessageLevel SessionConfiguration::messageLevel | ( | ) | const |
Definition at line 46 of file SessionConfiguration.cc.
References m_messageLevel.
Referenced by cond::DBSession::open().
00046 { 00047 return m_messageLevel; 00048 }
void SessionConfiguration::setAuthenticationMethod | ( | cond::AuthenticationMethod | m | ) |
Definition at line 13 of file SessionConfiguration.cc.
References m_authMethod.
Referenced by cond::ConfigSessionFromParameterSet::ConfigSessionFromParameterSet(), popcon::L1RPCHwConfigSourceHandler::ConnectOnlineDB(), popcon::RPCEMapSourceHandler::ConnectOnlineDB(), CondBasicIter::create(), l1t::DataManager::DataManager(), DTDBSession::DTDBSession(), DTCCBConfigHandler::getNewObjects(), and PixelPopConCalibSourceHandler::getNewObjects_coral().
00013 { 00014 m_authMethod=m; 00015 }
void SessionConfiguration::setAuthenticationPath | ( | const std::string & | p | ) |
Definition at line 17 of file SessionConfiguration.cc.
References m_authPath.
Referenced by cond::ConfigSessionFromParameterSet::ConfigSessionFromParameterSet(), popcon::L1RPCHwConfigSourceHandler::ConnectOnlineDB(), popcon::RPCEMapSourceHandler::ConnectOnlineDB(), l1t::DataManager::DataManager(), DTDBSession::DTDBSession(), and DTCCBConfigHandler::getNewObjects().
00017 { 00018 m_authPath=p; 00019 }
void SessionConfiguration::setBlobStreamer | ( | const std::string & | name | ) |
Definition at line 21 of file SessionConfiguration.cc.
References m_blobstreamerName, and m_hasBlobstreamer.
Referenced by CondBasicIter::create(), l1t::DataManager::DataManager(), PoolDBESSource::PoolDBESSource(), and cond::service::PoolDBOutputService::PoolDBOutputService().
00021 { 00022 m_hasBlobstreamer=true; 00023 m_blobstreamerName=name; 00024 }
void SessionConfiguration::setMessageLevel | ( | cond::MessageLevel | l | ) |
Definition at line 26 of file SessionConfiguration.cc.
References m_messageLevel.
Referenced by cond::ConfigSessionFromParameterSet::ConfigSessionFromParameterSet(), CondBasicIter::create(), DTDBSession::DTDBSession(), DTCCBConfigHandler::getNewObjects(), PixelPopConCalibSourceHandler::getNewObjects_coral(), and l1t::DataManager::setDebug().
00026 { 00027 m_messageLevel=l; 00028 }
void SessionConfiguration::startSQLMonitoring | ( | ) |
Definition at line 30 of file SessionConfiguration.cc.
References m_isSQLMonitoringOn.
00030 { 00031 m_isSQLMonitoringOn=true; 00032 }
Definition at line 35 of file SessionConfiguration.h.
Referenced by authenticationMethod(), and setAuthenticationMethod().
std::string cond::SessionConfiguration::m_authPath [private] |
Definition at line 36 of file SessionConfiguration.h.
Referenced by authName(), and setAuthenticationPath().
std::string cond::SessionConfiguration::m_blobstreamerName [private] |
Definition at line 38 of file SessionConfiguration.h.
Referenced by blobStreamerName(), and setBlobStreamer().
Definition at line 40 of file SessionConfiguration.h.
Referenced by connectionConfiguration(), and ~SessionConfiguration().
Definition at line 37 of file SessionConfiguration.h.
Referenced by hasBlobStreamService(), and setBlobStreamer().
Definition at line 41 of file SessionConfiguration.h.
Referenced by isSQLMonitoringOn(), and startSQLMonitoring().
Definition at line 39 of file SessionConfiguration.h.
Referenced by messageLevel(), and setMessageLevel().