13 #include "RelationalAccess/ConnectionService.h" 14 #include "RelationalAccess/IAuthenticationService.h" 15 #include "RelationalAccess/IWebCacheControl.h" 16 #include "RelationalAccess/ISessionProxy.h" 17 #include "RelationalAccess/IConnectionServiceConfiguration.h" 18 #include "CoralKernel/Context.h" 19 #include "CoralKernel/IProperty.h" 20 #include "CoralKernel/IPropertyManager.h" 24 namespace persistency {
58 level = coral::Warning;
77 coralConfig.disablePoolAutomaticCleanUp();
78 coralConfig.disableConnectionSharing();
99 authSys = ::atoi(authSysEnv);
108 const char* authEnv = std::getenv(
"HOME");
113 servName =
"COND/Services/RelationalAuthenticationService";
118 servName =
"COND/Services/XMLAuthenticationService";
130 coral::ConnectionService connServ;
137 coral::ConnectionService connServ;
139 std::pair<std::string, std::string> fullConnectionPars =
141 if (!fullConnectionPars.second.empty()) {
143 connServ.webCacheControl().setTableTimeToLive(fullConnectionPars.second,
TAG::tname, 1);
144 connServ.webCacheControl().setTableTimeToLive(fullConnectionPars.second,
IOV::tname, 1);
145 connServ.webCacheControl().setTableTimeToLive(fullConnectionPars.second,
PAYLOAD::tname, 3);
148 return std::shared_ptr<coral::ISessionProxy>(
149 connServ.connect(fullConnectionPars.first,
151 writeCapable ? coral::Update : coral::ReadOnly));
157 std::shared_ptr<coral::ISessionProxy> coralSession =
164 coral::IHandle<coral::IAuthenticationService> authSvc =
edm::ErrorSummaryEntry Error
void setLogDestination(Logger &logger)
bool isLoggingEnabled() const
CoralMsgReporter * m_msgReporter
static PFTauRenderPlugin instance
virtual std::string principalName()=0
static constexpr const char *const COND_AUTH_PATH
static constexpr const char *const COND_AUTH_PATH_PROPERTY
std::string m_authenticationService
void setParameters(const edm::ParameterSet &connectionPset)
void subscribe(Logger &logger)
T getUntrackedParameter(std::string const &, T const &) const
static constexpr char const * tname
static constexpr const char *const COND_READER_ROLE
static constexpr char const * tname
void setAuthenticationSystem(int authSysCode)
void setLogging(bool flag)
Session createSession(const std::string &connectionString, bool writeCapable=false)
void setMessageVerbosity(coral::MsgLevel level)
coral::MsgLevel m_messageLevel
void setConnectionTimeout(int seconds)
void setOutputLevel(coral::MsgLevel lvl) override
Modify output level.
std::string m_frontierSecurity
std::pair< std::string, std::string > getConnectionParams(const std::string &connectionString, const std::string &transactionId, const std::string &signature)
static constexpr char const * tname
Session createReadOnlySession(const std::string &connectionString, const std::string &transactionId)
static constexpr const char *const COND_AUTH_SYS
static constexpr const char *const COND_WRITER_ROLE
cond::CoralServiceManager * m_pluginManager
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
void setAuthenticationPath(const std::string &p)
std::shared_ptr< coral::ISessionProxy > createCoralSession(const std::string &connectionString, bool writeCapable=false)
void setFrontierSecurity(const std::string &signature)