MicroSessionManager is a class taking care of starting sessions for a given major technology and managing the individual database connections.
More...
#include <MicroSessionManager.h>
|
| virtual bool | attributeOfType (const std::string &attributeName, void *data, const std::type_info &typeInfo, const std::string &option) override |
| | The actual method returning the attribute data given a name.
|
| virtual bool | setAttributeOfType (const std::string &attributeName, const void *data, const std::type_info &typeInfo, const std::string &option) override |
| | The actual method setting the attribute data given a name.
|
MicroSessionManager is a class taking care of starting sessions for a given major technology and managing the individual database connections.
Definition at line 35 of file MicroSessionManager.h.
◆ MicroSessionManager()
◆ ~MicroSessionManager()
| virtual pool::PersistencySvc::MicroSessionManager::~MicroSessionManager |
( |
| ) |
|
|
virtual |
◆ attribute()
template<class T>
| T pool::ITechnologySpecificAttributes::attribute |
( |
const std::string & | attributeName, |
|
|
const std::string & | option = "" ) |
|
inlineinherited |
Templated method to retrieve an attribute.
Definition at line 25 of file ITechnologySpecificAttributes.h.
26 {
28 const std::type_info& typeInfo =
typeid(
T);
30 static_cast< void*
>( &
data ),
31 typeInfo,
32 option ) ) {
33 std::ostringstream
error;
34 error <<
"Failed to retrieve attribute " << attributeName <<
" of type " << typeInfo.name();
35 throw std::runtime_error(
error.str() +
" (APR: \" ITechnologySpecificAttributes \" from \" PersistencySvc \")");
36 }
38 }
char data[hepevt_bytes_allocation_ATLAS]
virtual bool attributeOfType(const std::string &attributeName, void *data, const std::type_info &typeInfo, const std::string &option)=0
The actual method returning the attribute data given a name.
◆ attributeOfType()
| virtual bool pool::PersistencySvc::MicroSessionManager::attributeOfType |
( |
const std::string & | attributeName, |
|
|
void * | data, |
|
|
const std::type_info & | typeInfo, |
|
|
const std::string & | option ) |
|
overrideprotectedvirtual |
◆ connect()
| DatabaseHandler * pool::PersistencySvc::MicroSessionManager::connect |
( |
const std::string & | fid, |
|
|
const std::string & | pfn, |
|
|
long | accessMode ) |
◆ disconnect()
| void pool::PersistencySvc::MicroSessionManager::disconnect |
( |
DatabaseHandler * | database | ) |
|
Disconnects from a database.
◆ disconnectAll()
| bool pool::PersistencySvc::MicroSessionManager::disconnectAll |
( |
| ) |
|
Disconnects from all the databases.
◆ fidForPfn()
| std::string pool::PersistencySvc::MicroSessionManager::fidForPfn |
( |
const std::string & | pfn | ) |
|
Fetches the FID by trying to temporatily connect to a database.
◆ setAttribute()
template<class T>
| bool pool::ITechnologySpecificAttributes::setAttribute |
( |
const std::string & | attributeName, |
|
|
const T & | atttibuteValue, |
|
|
const std::string & | option = "" ) |
|
inlineinherited |
Templated method to set an attribute.
Definition at line 41 of file ITechnologySpecificAttributes.h.
43 {
45 static_cast< const void* >( &atttibuteValue ),
46 typeid(T),
47 option );
48 }
virtual bool setAttributeOfType(const std::string &attributeName, const void *data, const std::type_info &typeInfo, const std::string &option)=0
The actual method setting the attribute data given a name.
◆ setAttributeOfType()
| virtual bool pool::PersistencySvc::MicroSessionManager::setAttributeOfType |
( |
const std::string & | attributeName, |
|
|
const void * | data, |
|
|
const std::type_info & | typeInfo, |
|
|
const std::string & | option ) |
|
overrideprotectedvirtual |
◆ technology()
| long pool::PersistencySvc::MicroSessionManager::technology |
( |
| ) |
const |
◆ m_databaseHandlers
| std::set<DatabaseHandler*> pool::PersistencySvc::MicroSessionManager::m_databaseHandlers |
|
private |
◆ m_registry
◆ m_session
| Session* pool::PersistencySvc::MicroSessionManager::m_session |
|
private |
◆ m_storageExplorer
◆ m_storageSvc
| IStorageSvc* pool::PersistencySvc::MicroSessionManager::m_storageSvc |
|
private |
◆ m_technology
| long pool::PersistencySvc::MicroSessionManager::m_technology |
|
private |
◆ m_transaction
| ITransaction& pool::PersistencySvc::MicroSessionManager::m_transaction |
|
private |
The documentation for this class was generated from the following file: