#include <MicroSessionManager.h>
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 37 of file ITechnologySpecificAttributes.h.
40 const std::type_info& typeInfo =
typeid(
T);
42 static_cast< void*
>( &
data ),
45 std::ostringstream
error;
46 error <<
"Failed to retrieve attribute " << attributeName <<
" of type " << typeInfo.name();
47 throw Exception(
error.str() );
◆ 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 |
◆ 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:
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.
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.