5#ifndef INCLUDE_PERSISTENCYSVC_MICROSESSIONMANAGER_H
6#define INCLUDE_PERSISTENCYSVC_MICROSESSIONMANAGER_H
39 bool connect( Io::IoFlag transType,
int ageLimit );
43 const std::string& fid,
44 const std::string& pfn );
62 const std::type_info& typeInfo,
63 const std::string& option )
override;
68 const std::type_info& typeInfo,
69 const std::string& option )
override;
DatabaseHandler is a class taking care of the micro-connections and the micro transactions for a give...
The IStorageSvc interface is able to handle user request for.
ITechnologySpecificAttributes is the interface for an object holding technology-specific attributes.
virtual ~MicroSessionManager()
Destructor.
bool connect(Io::IoFlag transType, int ageLimit)
Connects to the storage service.
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.
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.
void disconnect(DatabaseHandler *database)
Disconnects from a database.
long technology() const
Returns the technology.
std::string fidForPfn(const std::string &pfn)
Fetches the FID by trying to temporatily connect to a database.
IStorageSvc * m_storageSvc
DatabaseRegistry & m_registry
MicroSessionManager(DatabaseRegistry ®istry, long technology)
Constructor.
bool disconnectAll()
Disconnects from all the databases.
DatabaseHandler * connect(Io::IoFlag transType, const std::string &fid, const std::string &pfn)
Connects to a database.
std::set< DatabaseHandler * > m_databaseHandlers