CMS 3D CMS Logo

ConnectionPool.h
Go to the documentation of this file.
1 #ifndef ConditionDatabase_ConnectionPool_h
2 #define ConditionDatabase_ConnectionPool_h
3 
5 //
6 #include <string>
7 #include <memory>
8 //
9 #include "CoralBase/MessageStream.h"
10 
11 namespace edm {
12  class ParameterSet;
13 }
14 
15 namespace coral {
16  class IConnectionServiceConfiguration;
17  class ISessionProxy;
18  class IMsgReporter;
19 } // namespace coral
20 
21 namespace cond {
22  class CoralServiceManager;
23 }
24 
25 namespace cond {
26 
27  namespace persistency {
28  //
29  class CoralMsgReporter;
30  class Logger;
31 
33 
34  // a wrapper for the coral connection service.
36  public:
39 
40  void setMessageVerbosity(coral::MsgLevel level);
42  void setAuthenticationPath(const std::string& p);
43  void setAuthenticationSystem(int authSysCode);
45  void setLogging(bool flag);
46  bool isLoggingEnabled() const;
47  void setParameters(const edm::ParameterSet& connectionPset);
48  void configure();
49  Session createSession(const std::string& connectionString, bool writeCapable = false);
51  std::shared_ptr<coral::ISessionProxy> createCoralSession(const std::string& connectionString,
52  bool writeCapable = false);
53 
54  private:
55  std::shared_ptr<coral::ISessionProxy> createCoralSession(const std::string& connectionString,
56  const std::string& transactionId,
57  bool writeCapable = false);
59  const std::string& transactionId,
60  bool writeCapable = false);
61  void configure(coral::IConnectionServiceConfiguration& coralConfig);
62 
63  private:
65  int m_authSys = 0;
67  coral::MsgLevel m_messageLevel = coral::Error;
69  bool m_loggingEnabled = false;
70  //The frontier security option is turned on for all sessions
71  //usig this wrapper of the CORAL connection setup for configuring the server access
73  // this one has to be moved!
75  };
76  } // namespace persistency
77 } // namespace cond
78 
79 #endif
personalPlayback.level
level
Definition: personalPlayback.py:22
cond::persistency::ConnectionPool::m_pluginManager
cond::CoralServiceManager * m_pluginManager
Definition: ConnectionPool.h:74
cond::persistency::ConnectionPool::~ConnectionPool
~ConnectionPool()
Definition: ConnectionPool.cc:33
cond::persistency::ConnectionPool::setFrontierSecurity
void setFrontierSecurity(const std::string &signature)
Definition: ConnectionPool.cc:39
cond::persistency::CoralMsgReporter
Definition: CoralMsgReporter.h:31
logger
Definition: logger.py:1
edm
HLT enums.
Definition: AlignableModifier.h:19
cond::persistency::ConnectionPool::createCoralSession
std::shared_ptr< coral::ISessionProxy > createCoralSession(const std::string &connectionString, bool writeCapable=false)
Definition: ConnectionPool.cc:181
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
cond::persistency::ConnectionPool::isLoggingEnabled
bool isLoggingEnabled() const
Definition: ConnectionPool.cc:73
CoralServiceManager
cond::persistency::ConnectionPool::createSession
Session createSession(const std::string &connectionString, bool writeCapable=false)
Definition: ConnectionPool.cc:172
cond::persistency::ConnectionPool::setLogDestination
void setLogDestination(Logger &logger)
Definition: ConnectionPool.cc:188
cond::persistency::Logger
Definition: Logger.h:85
cond::CoralServiceManager
Definition: CoralServiceManager.h:25
coral
Definition: Binary.h:9
cond::persistency::CoralXMLFile
Definition: ConnectionPool.h:32
cond::persistency::ConnectionPool::m_messageLevel
coral::MsgLevel m_messageLevel
Definition: ConnectionPool.h:67
cond::persistency::ConnectionPool
Definition: ConnectionPool.h:35
cond::persistency::DbAuthenticationSystem
DbAuthenticationSystem
Definition: ConnectionPool.h:32
cond::persistency::ConnectionPool::setAuthenticationSystem
void setAuthenticationSystem(int authSysCode)
Definition: ConnectionPool.cc:37
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
cond
Definition: plugin.cc:23
cond::persistency::ConnectionPool::m_frontierSecurity
std::string m_frontierSecurity
Definition: ConnectionPool.h:72
cond::persistency::ConnectionPool::setMessageVerbosity
void setMessageVerbosity(coral::MsgLevel level)
Definition: ConnectionPool.cc:186
edm::ParameterSet
Definition: ParameterSet.h:47
ParameterSet
Definition: Functions.h:16
signature
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined signature
Definition: Activities.doc:4
cond::persistency::ConnectionPool::m_msgReporter
CoralMsgReporter * m_msgReporter
Definition: ConnectionPool.h:68
cond::persistency::CondDbKey
Definition: ConnectionPool.h:32
cond::persistency::Session
Definition: Session.h:63
leef::Error
edm::ErrorSummaryEntry Error
Definition: LogErrorEventFilter.cc:29
cond::persistency::ConnectionPool::setAuthenticationPath
void setAuthenticationPath(const std::string &p)
Definition: ConnectionPool.cc:35
cond::persistency::ConnectionPool::setParameters
void setParameters(const edm::ParameterSet &connectionPset)
Definition: ConnectionPool.cc:43
cond::persistency::ConnectionPool::configure
void configure()
Definition: ConnectionPool.cc:127
cond::persistency::ConnectionPool::m_authPath
std::string m_authPath
Definition: ConnectionPool.h:64
cond::persistency::ConnectionPool::m_loggingEnabled
bool m_loggingEnabled
Definition: ConnectionPool.h:69
cond::persistency::UndefinedAuthentication
Definition: ConnectionPool.h:32
cond::persistency::ConnectionPool::setLogging
void setLogging(bool flag)
Definition: ConnectionPool.cc:41
cond::persistency::ConnectionPool::ConnectionPool
ConnectionPool()
Definition: ConnectionPool.cc:26
cond::persistency::ConnectionPool::createReadOnlySession
Session createReadOnlySession(const std::string &connectionString, const std::string &transactionId)
Definition: ConnectionPool.cc:176
l1RCTOmdsFedVectorProducer_cfi.connectionString
connectionString
Definition: l1RCTOmdsFedVectorProducer_cfi.py:4
Session.h
cond::persistency::ConnectionPool::m_authSys
int m_authSys
Definition: ConnectionPool.h:65
cond::persistency::ConnectionPool::m_authenticationService
std::string m_authenticationService
Definition: ConnectionPool.h:66
RemoveAddSevLevel.flag
flag
Definition: RemoveAddSevLevel.py:116