![]() |
ATLAS Offline Software
|
The IStorageTool interface is able to handle user request for. More...
#include <StorageSvc/IStorageTool.h>
Public Member Functions | |
| virtual std::string | getContName (FileDescriptor &refDB, Token &pToken) const =0 |
| Get container name for object. | |
| virtual StatusCode | write (FileDescriptor &refDB, const std::string &refCont, int technology, const void *object, const RootType type, Token *&refpTok)=0 |
| Register object for write. | |
| virtual StatusCode | read (FileDescriptor &refDB, const Token &pToken, void **object)=0 |
| Read a persistent object from the medium. | |
| virtual StatusCode | getShape (FileDescriptor &refDB, const Guid &objType, const DbTypeInfo *&tinfo)=0 |
| Retrieve persistent tinfo from Storage manager. | |
| virtual const DbTypeInfo * | createShape (const Guid &typeID)=0 |
| Create a Shape representation based on a ShapeID. | |
| virtual StatusCode | startSession (Io::IoFlag mode, int tech, int ageLimit=-1)=0 |
| Start a new Database Session. | |
| virtual StatusCode | endSession ()=0 |
| End the Database session. | |
| virtual StatusCode | connect (Io::IoFlag mode, FileDescriptor &refDB)=0 |
| Connect to a logical Database unit. | |
| virtual StatusCode | disconnect (FileDescriptor &refDB)=0 |
| Disconnect from a logical Database unit. | |
| virtual StatusCode | openMode (FileDescriptor &refDB, Io::IoFlag &mode)=0 |
| Query the access mode of a Database unit. | |
| virtual StatusCode | endTransaction (FileDescriptor &refDB, Transaction::Action typ)=0 |
| End/Finish an existing Transaction sequence. | |
| virtual StatusCode | getDomainOption (DbOption &opt)=0 |
| Access options for a given database domain. | |
| virtual StatusCode | setDomainOption (const DbOption &opt)=0 |
| Set options for a given database domain. | |
| ServiceHandle< StoreGateSvc > & | evtStore () |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. | |
| const ServiceHandle< StoreGateSvc > & | detStore () const |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. | |
| virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. | |
| virtual StatusCode | sysStart () override |
| Handle START transition. | |
| virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. | |
| virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. | |
| Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T, V, H > &t) |
| void | updateVHKA (Gaudi::Details::PropertyBase &) |
| MsgStream & | msg () const |
| bool | msgLvl (const MSG::Level lvl) const |
Protected Member Functions | |
| void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
| remove all handles from I/O resolution | |
| std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > | renounce (T &h) |
| void | extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps) |
| Add StoreName to extra input/output deps as needed. | |
Private Types | |
| typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> | |
Private Attributes | |
| StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default). | |
| StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default). | |
| std::vector< SG::VarHandleKeyArray * > | m_vhka |
| bool | m_varHandleArraysDeclared |
The IStorageTool interface is able to handle user request for.
The activity of the storage manager includes the Transaction handling and hence the management of
Definition at line 40 of file IStorageTool.h.
|
privateinherited |
Definition at line 376 of file AthCommonDataStore.h.
|
pure virtual |
Connect to a logical Database unit.
A connection is equivalent to the triple (OCISession, OCIServer, OCISvcCtx) in ORACLE, a login to a datasource using ODBC, or a single federation for Objectivity. For file based technologies, such as root, MS Access, ODBC/Text etc., this is involves the opening of the requested file.
| mode | [IN] Flag to indicate the accessmode of the session. READ, NEW/CREATE/WRITE, UPDATE, RECREATE. |
| refDB | [I/O] Descriptor of the Database to be opened. On successful return the Database handle is valid. |
Implemented in DbStorageTool.
|
pure virtual |
Create a Shape representation based on a ShapeID.
| typeID | [IN] Shape identifier. |
Implemented in DbStorageTool.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
|
inlineinherited |
Definition at line 145 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 95 of file AthCommonDataStore.h.
|
pure virtual |
Disconnect from a logical Database unit.
The request for disconnect requires, that all pending Transactions are already commited. Otherwise data are lost. On disconnection the access to the Database is finalized, closed. The token will be invalidated may not be used at any longer after disconnection.
| refDB | [IN] Descriptor of the Database access. This handle was retrieved when connecting to the logical Database. On successful return the Database handle will be invalidated. |
Implemented in DbStorageTool.
|
pure virtual |
End the Database session.
The request to end a Database session requires, that all pending Transactions and connections are closed. Otherwise internally the close will be forced and potentially data on pending Transactions will be lost. The token will be invalidated may not be used at any longer once the session ended.
Implemented in DbStorageTool.
|
pure virtual |
End/Finish an existing Transaction sequence.
At this phase all objects, which were marked for write when the Transaction was started, are either going to be made persistent or scratched. After the Transaction ended, the Transaction context is invalidated and may no longer be used independent wether the Transaction was successful or not.
| conn | [IN] Database connection |
| typ | [IN] Enum indicating an action to be performed. Valid arguments are COMMIT |
Implemented in DbStorageTool.
|
inlineinherited |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 85 of file AthCommonDataStore.h.
|
protectedinherited |
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
|
pure virtual |
|
pure virtual |
Access options for a given database domain.
Domain options are global options, which refer to the database technology and not to a particular connection.
Note: The options depend on the underlying implementation and are not normalized.
| opt | [IN] Reference to option object. |
Implemented in DbStorageTool.
|
pure virtual |
Retrieve persistent tinfo from Storage manager.
The persistent tinfo is saved at write time to a Database. It should match the transient type tinfo when reading
| refDB | [IN] Reference to Database descriptor |
| objType | [IN] Shape identifier. |
| tinfo | [OUT] Persistent shpae of a given object type. |
Implemented in DbStorageTool.
|
overridevirtualinherited |
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
pure virtual |
Query the access mode of a Database unit.
| refDB | [IN] Descriptor of the Database to be queried. |
| mode | [OUT] Open mod to the database. |
Implemented in DbStorageTool.
|
overridevirtualinherited |
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
|
pure virtual |
Read a persistent object from the medium.
Reading an object does not create the object.
| refDB | [IN] Reference to Database descriptor |
| pToken | [IN] Reference to persistent token information. |
| object | [OUT] Pointer to persistent data pointer. |
Implemented in DbStorageTool.
|
inlineprotectedinherited |
Definition at line 368 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
remove all handles from I/O resolution
Definition at line 352 of file AthCommonDataStore.h.
Set options for a given database domain.
Domain options are global options, which refer to the database technology and not to a particular connection.
Note: The options depend on the underlying implementation and are not normalized.
| opt | [IN] Reference to option object. |
Implemented in DbStorageTool.
|
pure virtual |
Start a new Database Session.
The Database session handles Databases of one given type. This involves specific handling of a given domain represented by a technology type. All subsequent actions involving Database actions will re-use this technology identifier. The session is a purely logical concept, which typically cannot fail unless the underlying technology requires global initialization calls.
| mode | [IN] Flag to indicate the accessmode of the session. READ, NEW/CREATE/WRITE, UPDATE, RECREATE |
| tech | [IN] Flag indicating the technology type of the Database the user wants to connect to. |
| ageLimit | [IN] Overwriting default age limit of the session. |
Implemented in DbStorageTool.
|
overridevirtualinherited |
Perform system initialization for an algorithm.
We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.
Reimplemented in asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, and AthCheckedComponent<::AthAlgTool >.
|
overridevirtualinherited |
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
|
inlineinherited |
Definition at line 298 of file AthCommonDataStore.h.
|
pure virtual |
Register object for write.
| refDB | [IN] Reference to Database descriptor |
| refCont | [IN] Reference to container name |
| technology[IN] | Specialised sub-technology |
| object | [IN] Pointer to persistent data object. |
| type | [IN] Persistent type information |
| refpTok | [OUT] Reference to location for storing the pointer of the persistent object token. |
Implemented in DbStorageTool.
|
privateinherited |
Pointer to StoreGate (detector store by default).
Definition at line 381 of file AthCommonDataStore.h.
|
privateinherited |
Pointer to StoreGate (event store by default).
Definition at line 378 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 387 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 386 of file AthCommonDataStore.h.