|
ATLAS Offline Software
|
Go to the documentation of this file.
8 #include "GaudiKernel/MsgStream.h"
10 #include "CoolApplication/DatabaseSvcFactory.h"
11 #include "CoolKernel/IDatabaseSvc.h"
13 #include "RelationalAccess/ConnectionService.h"
36 m_log << MSG::ERROR <<
"COOL connection for " <<
m_connstr <<
" already aborted as invalid" <<
endmsg;
42 m_log << MSG::INFO <<
"Opening COOL connection for " <<
m_connstr <<
45 cool::IDatabaseSvc&
dbSvc=cool::DatabaseSvcFactory::databaseService();
51 m_log << MSG::INFO <<
"*** COOL exception caught: " <<
e.what() <<
endmsg;
57 m_log << MSG::ERROR <<
"*** COOL exception caught: " <<
e.what() <<
endmsg;
58 m_log << MSG::ERROR <<
"Could not create a new conditions database - abort connection"<<
endmsg;
85 m_log << MSG::WARNING <<
"Exception from disconnect/reconnect: " <<
e.what() <<
endmsg;
90 m_log << MSG::ERROR <<
"Cannot reconnect to database:" <<
e.what()<<
endmsg;
101 coral::ConnectionService connSvc;
114 m_log << MSG::INFO <<
"Exception caught when disconnecting: " <<
e.what() <<
endmsg;
123 m_log << MSG::INFO <<
"Exception caught when disconnecting CoraCool: "<<
e.what() <<
endmsg;
139 m_log << MSG::INFO <<
"Connection " <<
m_connstr <<
" : nConnect: " <<
141 std::setw(8) << std::setprecision(2) << fread <<
" ))s" <<
endmsg;
CoraCoolDatabasePtr m_coracoolDb
cool::IDatabasePtr m_coolDb
cool::IDatabasePtr getCoolDb()
IOVDbConn(const std::string &dbname, const bool readOnly, MsgStream &msg)
void summary(const float fread)
boost::shared_ptr< CoraCoolDatabase > CoraCoolDatabasePtr
void setReadOnly(const bool readOnly)
const std::string m_connstr
CoraCoolDatabasePtr getCoraCoolDb()