#include <IOVDbConn.h>
Definition at line 18 of file IOVDbConn.h.
◆ IOVDbConn()
IOVDbConn::IOVDbConn |
( |
const std::string & |
dbname, |
|
|
const bool |
readOnly, |
|
|
MsgStream & |
msg |
|
) |
| |
◆ ~IOVDbConn()
IOVDbConn::~IOVDbConn |
( |
| ) |
|
|
default |
◆ aborted()
bool IOVDbConn::aborted |
( |
| ) |
const |
|
inline |
◆ close()
void IOVDbConn::close |
( |
| ) |
|
◆ decUsage()
void IOVDbConn::decUsage |
( |
| ) |
|
|
inline |
◆ dropAndReconnect()
bool IOVDbConn::dropAndReconnect |
( |
| ) |
|
Definition at line 79 of file IOVDbConn.cxx.
85 m_log << MSG::WARNING <<
"Exception from disconnect/reconnect: " <<
e.what() <<
endmsg;
90 m_log << MSG::ERROR <<
"Cannot reconnect to database:" <<
e.what()<<
endmsg;
◆ getCoolDb()
cool::IDatabasePtr IOVDbConn::getCoolDb |
( |
| ) |
|
Definition at line 31 of file IOVDbConn.cxx.
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;
◆ getCoraCoolDb()
Definition at line 96 of file IOVDbConn.cxx.
101 coral::ConnectionService connSvc;
◆ getFolderPtr() [1/2]
template<typename T = cool::IFolderPtr>
T IOVDbConn::getFolderPtr |
( |
const std::string & |
folderName | ) |
|
|
inline |
◆ getFolderPtr() [2/2]
◆ incUsage()
void IOVDbConn::incUsage |
( |
| ) |
|
|
inline |
◆ isActive()
bool IOVDbConn::isActive |
( |
| ) |
const |
|
inline |
◆ isReadOnly()
bool IOVDbConn::isReadOnly |
( |
| ) |
const |
|
inline |
◆ name()
const std::string & IOVDbConn::name |
( |
| ) |
const |
|
inline |
◆ nFolders()
unsigned int IOVDbConn::nFolders |
( |
| ) |
const |
|
inline |
◆ open()
◆ setInactive()
void IOVDbConn::setInactive |
( |
| ) |
|
Definition at line 108 of file IOVDbConn.cxx.
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;
◆ setReadOnly()
void IOVDbConn::setReadOnly |
( |
const bool |
readOnly | ) |
|
◆ summary()
void IOVDbConn::summary |
( |
const float |
fread | ) |
|
Definition at line 137 of file IOVDbConn.cxx.
139 m_log << MSG::INFO <<
"Connection " <<
m_connstr <<
" : nConnect: " <<
141 std::setw(8) << std::setprecision(2) << fread <<
" ))s" <<
endmsg;
◆ valid()
bool IOVDbConn::valid |
( |
| ) |
const |
|
inline |
◆ m_abort
◆ m_active
◆ m_connstr
const std::string IOVDbConn::m_connstr |
|
private |
◆ m_coolDb
cool::IDatabasePtr IOVDbConn::m_coolDb |
|
private |
◆ m_coracoolDb
◆ m_log
MsgStream& IOVDbConn::m_log |
|
private |
◆ m_nconn
unsigned int IOVDbConn::m_nconn |
|
private |
◆ m_nfolder
unsigned int IOVDbConn::m_nfolder |
|
private |
◆ m_readonly
bool IOVDbConn::m_readonly |
|
private |
The documentation for this class was generated from the following files: