![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef POOLSVC_IPOOLSVC_H
6 #define POOLSVC_IPOOLSVC_H
13 #include "GaudiKernel/IService.h"
31 static const InterfaceID IID_IPoolSvc(
"IPoolSvc", 1, 0);
44 static const InterfaceID&
interfaceID() {
return(IID_IPoolSvc); }
72 virtual const coral::Context*
context()
const = 0;
89 virtual void lookupBestPfn(
const std::string& token, std::string& pfn, std::string&
type)
const = 0;
94 virtual void renamePfn(
const std::string&
pf,
const std::string& newpf) = 0;
102 const std::string& connection,
103 const std::string& collectionName,
111 const std::string& collection,
112 const unsigned long ientry)
const = 0;
137 virtual long long int getFileSize(
const std::string&
dbName,
long tech,
unsigned int contextId)
const = 0;
149 const std::string&
dbName,
150 const std::string& contName =
"",
155 const std::string&
data,
161 const std::string&
data,
163 const std::string&
dbName,
164 const std::string& contName =
"",
virtual Token * registerForWrite(const Placement *placement, const void *obj, const RootType &classDesc)=0
virtual const std::map< std::string, unsigned int > & getInputContextMap() const =0
char data[hepevt_bytes_allocation_ATLAS]
This class holds all the necessary information to guide the writing of an object in a physical place.
This class provides the interface to the LCG POOL persistency software.
virtual Token * getToken(const std::string &connection, const std::string &collection, const unsigned long ientry) const =0
virtual StatusCode getAttribute(const std::string &optName, std::string &data, long tech, unsigned int contextId=IPoolSvc::kInputStream) const =0
Get POOL attributes - domain.
virtual void renamePfn(const std::string &pf, const std::string &newpf)=0
virtual StatusCode setFrontierCache(const std::string &conn)=0
Setup Frontier cache for given logical or physical connection name.
virtual StatusCode commitAndHold(unsigned int contextId=IPoolSvc::kInputStream) const =0
Commit data for a given stream and hold buffer.
Type
Transaction type enumeration.
virtual unsigned int getOutputContext(const std::string &label)=0
This class provides a token that identifies in a unique way objects on the persistent storage.
static const InterfaceID & interfaceID()
Retrieve interface ID.
virtual void setObjPtr(void *&obj, const Token *token)=0
virtual StatusCode commit(unsigned int contextId=IPoolSvc::kInputStream) const =0
Commit data for a given stream and flush buffer.
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual void lookupBestPfn(const std::string &token, std::string &pfn, std::string &type) const =0
virtual const pool::IFileCatalog * catalog() const =0
virtual void setShareMode(bool shareCat)=0
virtual StatusCode disconnectDb(const std::string &connection, unsigned int contextId=IPoolSvc::kInputStream) const =0
Disconnect single Database.
PoolStream
Stream to distinguish the POOL Stream instances.
virtual void loadComponent(const std::string &compName)=0
virtual const coral::Context * context() const =0
virtual long long int getFileSize(const std::string &dbName, long tech, unsigned int contextId) const =0
Get POOL FileSize attribute for database without logging a message.
virtual StatusCode setAttribute(const std::string &optName, const std::string &data, long tech, const std::string &dbName, const std::string &contName="", unsigned int contextId=IPoolSvc::kOutputStream) const =0
Set POOL attributes - db/file, container/collection.
virtual StatusCode getAttribute(const std::string &optName, std::string &data, long tech, const std::string &dbName, const std::string &contName="", unsigned int contextId=IPoolSvc::kInputStream) const =0
Get POOL attributes - db/file, container/collection.
virtual StatusCode setAttribute(const std::string &optName, const std::string &data, long tech, unsigned int contextId=IPoolSvc::kOutputStream) const =0
Set POOL attributes - domain.
virtual unsigned int getInputContext(const std::string &label, unsigned int maxFile=0)=0
virtual StatusCode disconnect(unsigned int contextId=IPoolSvc::kInputStream) const =0
Disconnect PersistencySvc associated with a stream.
virtual pool::ICollection * createCollection(const std::string &collectionType, const std::string &connection, const std::string &collectionName, unsigned int contextId=IPoolSvc::kInputStream) const =0
virtual StatusCode connect(pool::ITransaction::Type type, unsigned int contextId=IPoolSvc::kInputStream)=0
Connect to a logical database unit; PersistencySvc is chosen according to transaction type (accessmod...