CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 }
18 
19 namespace cond {
20  class CoralServiceManager;
21 }
22 
23 namespace cond {
24 
25  namespace persistency {
26  //
28 
30  public:
33 
34  void setMessageVerbosity( coral::MsgLevel level );
35  void setAuthenticationPath( const std::string& p );
36  void setAuthenticationSystem( int authSysCode );
37  void setLogging( bool flag );
38  bool isLoggingEnabled() const;
39  void setParameters( const edm::ParameterSet& connectionPset );
40  void configure();
41  Session createSession( const std::string& connectionString, bool writeCapable=false );
42  Session createReadOnlySession( const std::string& connectionString, const std::string& transactionId );
43 
44  private:
45  Session createSession( const std::string& connectionString, const std::string& transactionId, bool writeCapable=false );
46  void configure( coral::IConnectionServiceConfiguration& coralConfig);
47  private:
49  int m_authSys = 0;
50  coral::MsgLevel m_messageLevel = coral::Info;
51  bool m_loggingEnabled = false;
52  // this one has to be moved!
54  std::vector<std::string> m_refreshtablelist;
55  };
56  }
57 }
58 
59 #endif
60 
void setParameters(const edm::ParameterSet &connectionPset)
void setAuthenticationSystem(int authSysCode)
Session createSession(const std::string &connectionString, bool writeCapable=false)
void setMessageVerbosity(coral::MsgLevel level)
Session createReadOnlySession(const std::string &connectionString, const std::string &transactionId)
tuple level
Definition: testEve_cfg.py:34
cond::CoralServiceManager * m_pluginManager
void setAuthenticationPath(const std::string &p)
std::vector< std::string > m_refreshtablelist