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 <string>
9#include <set>
10
11#include "StorageSvc/pool.h"
12
13namespace pool {
14
15 // forward declarations
16 class IStorageSvc;
17
18 // forward declarations
19 class DatabaseRegistry;
20 class DatabaseHandler;
21
29
31 public:
33 MicroSessionManager( DatabaseRegistry& registry, long technology );
35 virtual ~MicroSessionManager();
36
38 bool connect( Io::IoFlag transType, int ageLimit );
39
41 DatabaseHandler* connect( Io::IoFlag transType,
42 const std::string& fid,
43 const std::string& pfn );
44
46 void disconnect( DatabaseHandler* database );
47
49 bool disconnectAll();
50
52 std::string fidForPfn( const std::string& pfn );
53
54 virtual
55 bool attributeOfType( const std::string& attributeName,
56 void* data,
57 const std::type_info& typeInfo,
58 const std::string& option );
59
60 virtual
61 bool setAttributeOfType( const std::string& attributeName,
62 const void* data,
63 const std::type_info& typeInfo,
64 const std::string& option );
65
66 private:
71 std::set<DatabaseHandler*> m_databaseHandlers;
72 };
73}
74
75#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:48
virtual ~MicroSessionManager()
Destructor.
bool connect(Io::IoFlag transType, int ageLimit)
Connects to the storage service.
virtual bool attributeOfType(const std::string &attributeName, void *data, const std::type_info &typeInfo, const std::string &option)
void disconnect(DatabaseHandler *database)
Disconnects from a database.
std::string fidForPfn(const std::string &pfn)
Fetches the FID by trying to temporatily connect to a database.
virtual bool setAttributeOfType(const std::string &attributeName, const void *data, const std::type_info &typeInfo, const std::string &option)
MicroSessionManager(DatabaseRegistry &registry, long technology)
Constructor.
bool disconnectAll()
Disconnects from all the databases.
std::set< DatabaseHandler * > m_databaseHandlers
Framework include files.
Definition libname.h:15