![]() |
ATLAS Offline Software
|
MicroSessionManager is a class taking care of starting sessions for a given major technology and managing the individual database connections. More...
#include <MicroSessionManager.h>
Public Member Functions | |
| MicroSessionManager (SessionTool &sessionTool, long technology, int ageLimit) | |
| Constructor. | |
| ~MicroSessionManager () | |
| Destructor. | |
| DatabaseHandler * | connect (Io::IoFlag transType, const std::string &fid, const std::string &pfn) |
| Connects to a database. | |
| void | disconnect (DatabaseHandler *database) |
| Disconnects from a database. | |
| bool | disconnectAll () |
| Disconnects from all the databases. | |
| std::string | fidForPfn (const std::string &pfn) |
| Fetches the FID by trying to temporatily connect to a database. | |
| bool | attributeOfType (const std::string &attributeName, void *data, const std::type_info &typeInfo, const std::string &option) |
| bool | setAttributeOfType (const std::string &attributeName, const void *data, const std::type_info &typeInfo, const std::string &option) |
Private Attributes | |
| SessionTool & | m_sessionTool |
| IStorageSvc * | m_storageSvc |
| long | m_technology |
| std::set< DatabaseHandler * > | m_databaseHandlers |
MicroSessionManager is a class taking care of starting sessions for a given major technology and managing the individual database connections.
Definition at line 25 of file MicroSessionManager.h.
| MicroSessionManager::MicroSessionManager | ( | SessionTool & | sessionTool, |
| long | technology, | ||
| int | ageLimit ) |
Constructor.
Definition at line 18 of file MicroSessionManager.cxx.
| MicroSessionManager::~MicroSessionManager | ( | ) |
Destructor.
Definition at line 32 of file MicroSessionManager.cxx.
| bool MicroSessionManager::attributeOfType | ( | const std::string & | attributeName, |
| void * | data, | ||
| const std::type_info & | typeInfo, | ||
| const std::string & | option ) |
Definition at line 88 of file MicroSessionManager.cxx.
| DatabaseHandler * MicroSessionManager::connect | ( | Io::IoFlag | transType, |
| const std::string & | fid, | ||
| const std::string & | pfn ) |
Connects to a database.
Definition at line 38 of file MicroSessionManager.cxx.
| void MicroSessionManager::disconnect | ( | DatabaseHandler * | database | ) |
Disconnects from a database.
Definition at line 54 of file MicroSessionManager.cxx.
| bool MicroSessionManager::disconnectAll | ( | ) |
Disconnects from all the databases.
Definition at line 63 of file MicroSessionManager.cxx.
| std::string MicroSessionManager::fidForPfn | ( | const std::string & | pfn | ) |
Fetches the FID by trying to temporatily connect to a database.
Definition at line 75 of file MicroSessionManager.cxx.
| bool MicroSessionManager::setAttributeOfType | ( | const std::string & | attributeName, |
| const void * | data, | ||
| const std::type_info & | typeInfo, | ||
| const std::string & | option ) |
Definition at line 97 of file MicroSessionManager.cxx.
|
private |
Definition at line 60 of file MicroSessionManager.h.
|
private |
Definition at line 57 of file MicroSessionManager.h.
|
private |
Definition at line 58 of file MicroSessionManager.h.
|
private |
Definition at line 59 of file MicroSessionManager.h.