![]() |
ATLAS Offline Software
|
This class provides the interface to the LCG POOL persistency software. More...
#include <IPoolSvc.h>
Public Types | |
enum | PoolStream { kInputStream, kOutputStream } |
Stream to distinguish the POOL Stream instances. More... | |
Public Member Functions | |
DeclareInterfaceID (IPoolSvc, 1, 0) | |
Declare interface ID. More... | |
virtual Token * | registerForWrite (const Placement *placement, const void *obj, const RootType &classDesc)=0 |
virtual void | setObjPtr (void *&obj, const Token *token)=0 |
virtual unsigned int | getOutputContext (const std::string &label)=0 |
virtual unsigned int | getInputContext (const std::string &label, unsigned int maxFile=0)=0 |
virtual const std::map< std::string, unsigned int > & | getInputContextMap () const =0 |
virtual const coral::Context * | context () const =0 |
virtual void | loadComponent (const std::string &compName)=0 |
virtual void | setShareMode (bool shareCat)=0 |
virtual const pool::IFileCatalog * | catalog () const =0 |
virtual void | lookupBestPfn (const std::string &token, std::string &pfn, std::string &type) const =0 |
virtual void | renamePfn (const std::string &pf, const std::string &newpf)=0 |
virtual pool::ICollection * | createCollection (const std::string &collectionType, const std::string &connection, const std::string &collectionName, unsigned int contextId=IPoolSvc::kInputStream) const =0 |
virtual Token * | getToken (const std::string &connection, const std::string &collection, const unsigned long ientry) 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 (accessmode). More... | |
virtual StatusCode | commit (unsigned int contextId=IPoolSvc::kInputStream) const =0 |
Commit data for a given stream and flush buffer. More... | |
virtual StatusCode | commitAndHold (unsigned int contextId=IPoolSvc::kInputStream) const =0 |
Commit data for a given stream and hold buffer. More... | |
virtual StatusCode | disconnect (unsigned int contextId=IPoolSvc::kInputStream) const =0 |
Disconnect PersistencySvc associated with a stream. More... | |
virtual StatusCode | disconnectDb (const std::string &connection, unsigned int contextId=IPoolSvc::kInputStream) const =0 |
Disconnect single Database. More... | |
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. More... | |
virtual StatusCode | getAttribute (const std::string &optName, std::string &data, long tech, unsigned int contextId=IPoolSvc::kInputStream) const =0 |
Get POOL attributes - domain. More... | |
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. More... | |
virtual StatusCode | setAttribute (const std::string &optName, const std::string &data, long tech, unsigned int contextId=IPoolSvc::kOutputStream) const =0 |
Set POOL attributes - domain. More... | |
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. More... | |
virtual StatusCode | setFrontierCache (const std::string &conn)=0 |
Setup Frontier cache for given logical or physical connection name. More... | |
This class provides the interface to the LCG POOL persistency software.
Definition at line 35 of file IPoolSvc.h.
enum IPoolSvc::PoolStream |
Stream to distinguish the POOL Stream instances.
Enumerator | |
---|---|
kInputStream | |
kOutputStream |
Definition at line 39 of file IPoolSvc.h.
|
pure virtual |
|
pure virtual |
Commit data for a given stream and flush buffer.
stream | [IN] poolStream to be commited. |
|
pure virtual |
Commit data for a given stream and hold buffer.
stream | [IN] poolStream to be commited. |
|
pure virtual |
Connect to a logical database unit; PersistencySvc is chosen according to transaction type (accessmode).
|
pure virtual |
|
pure virtual |
collectionType | [IN] string containing the collection type. |
connection | [IN] string containing the connection. |
collectionName | [IN] string containing the persistent name of the collection. |
contextId | [IN] id for PoolSvc persistency service to use for input. |
IPoolSvc::DeclareInterfaceID | ( | IPoolSvc | , |
1 | , | ||
0 | |||
) |
Declare interface ID.
|
pure virtual |
Disconnect PersistencySvc associated with a stream.
stream | [IN] poolStream to be disconnected. |
|
pure virtual |
Disconnect single Database.
connection | [IN] connection string for Database to be disconnected. |
contextId | [IN] context id of database to be disconnected. |
|
pure virtual |
Get POOL attributes - db/file, container/collection.
|
pure virtual |
Get POOL attributes - domain.
|
pure virtual |
Get POOL FileSize attribute for database without logging a message.
|
pure virtual |
label | [IN] string label to name new context and allow sharing (returns existing contextId) |
maxFile | [IN] maximum number of open input files. |
|
pure virtual |
|
pure virtual |
label | [IN] string label to name new context and allow sharing (returns existing contextId) |
|
pure virtual |
connection | [IN] string containing the connection/file name. |
collection | [IN] string containing the persistent name of the collection. |
ientry | [IN] entry number for the token to be returned |
|
pure virtual |
compName | [IN] string name of the component to be loaded. |
|
pure virtual |
token | [IN] filename/token string to be translated |
pfn | [OUT] string PFN of database |
type | [OUT] string filetype of database |
|
pure virtual |
placement | [IN] pointer to the placement hint. |
obj | [IN] pointer to the Data Object to be written to Pool. |
classDesc | [IN] pointer to the Seal class description for the Data Object. |
pf | [IN] filename to be renamed |
newpf | [IN] new filename |
|
pure virtual |
Set POOL attributes - db/file, container/collection.
|
pure virtual |
Set POOL attributes - domain.
|
pure virtual |
Setup Frontier cache for given logical or physical connection name.
obj | [OUT] pointer to the Data Object. |
token | [IN] token of the Data Object for which a Pool Ref is filled. |
|
pure virtual |
shareCat | [IN] bool to share the file catalog. |