ATLAS Offline Software
Loading...
Searching...
No Matches
MicroSessionManager.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef POOLSVC_MICROSESSIONMANAGER_H
6#define POOLSVC_MICROSESSIONMANAGER_H
7
8#include "GaudiKernel/IFileMgr.h"
9
10#include <string>
11#include <set>
12
13class IStorageSvc;
14class SessionTool;
15class DatabaseHandler;
16
24
26public:
28 MicroSessionManager( SessionTool& sessionTool, long technology, int ageLimit );
31
33 DatabaseHandler* connect( Io::IoFlag transType,
34 const std::string& fid,
35 const std::string& pfn );
36
38 void disconnect( DatabaseHandler* database );
39
41 bool disconnectAll();
42
44 std::string fidForPfn( const std::string& pfn );
45
46 bool attributeOfType( const std::string& attributeName,
47 void* data,
48 const std::type_info& typeInfo,
49 const std::string& option );
50
51 bool setAttributeOfType( const std::string& attributeName,
52 const void* data,
53 const std::type_info& typeInfo,
54 const std::string& option );
55
56private:
60 std::set<DatabaseHandler*> m_databaseHandlers;
61};
62
63#endif
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.
Definition IStorageSvc.h:39
void disconnect(DatabaseHandler *database)
Disconnects from a database.
MicroSessionManager(SessionTool &sessionTool, long technology, int ageLimit)
Constructor.
DatabaseHandler * connect(Io::IoFlag transType, const std::string &fid, const std::string &pfn)
Connects to a database.
bool setAttributeOfType(const std::string &attributeName, const void *data, const std::type_info &typeInfo, const std::string &option)
bool attributeOfType(const std::string &attributeName, void *data, const std::type_info &typeInfo, const std::string &option)
std::set< DatabaseHandler * > m_databaseHandlers
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.