![]() |
ATLAS Offline Software
|
#include <SessionTool.h>
Public Member Functions | |
| SessionTool (const std::string &type, const std::string &name, const IInterface *parent) | |
| Constructors. | |
| virtual | ~SessionTool () |
| Destructor. | |
| SessionTool (const SessionTool &)=delete | |
| SessionTool & | operator= (const SessionTool &)=delete |
| virtual void | setupFC (Gaudi::IFileCatalog &fileCatalog, int ageLimit) override final |
| Use this FileCatalog and DB ageing value for this session. | |
| virtual void * | readObject (const Token &token, void *object=0) override final |
| Retrieves an object from persistent store and return with type information The handle to the reflection class is necessary to later delete the object. | |
| virtual Token * | registerForWrite (const Placement &place, const void *object, const RootType &type) override final |
| registerForWrite registers an object for writing to the persistent medium higher level interactions with the framework are necessary. | |
| pool::DatabaseRegistry & | registry () |
| virtual bool | disconnectAll () override final |
| Explicitly disconnects all the databases. | |
| virtual bool | start (Io::IoFlag type=Io::READ) override final |
| Starts a new transaction. Returns the success of the operation. | |
| virtual bool | commit () override final |
| Commits the transaction. | |
| virtual bool | commitAndHold () override final |
| Commits and holds the transaction. | |
| virtual Io::IoFlag | openMode () const override final |
| Returns the transaction type. | |
| virtual std::unique_ptr< pool::IDatabase > | databaseHandle (const std::string &dbName, pool::DatabaseSpecification::NameType dbNameType) override final |
| Creates and returns a new database handle object. | |
| virtual Gaudi::IFileCatalog & | fileCatalog () |
| Returns the file catalog in use. | |
| virtual pool::IStorageSvc & | getStorageSvc (long technology) override final |
| Return StorageSvc for a given technology used in this session. | |
| pool::MicroSessionManager & | microSessionManager (long technology) override final |
| Returns the technology given a technology type. | |
| void | closeSession () override final |
| StatusCode | finalize () override final |
| 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 Attributes | |
| Gaudi::IFileCatalog * | m_catalog |
| int | m_ageLimit |
| std::unique_ptr< pool::DatabaseRegistry > | m_registry |
| Io::IoFlag | m_transactionType |
| std::map< long, std::unique_ptr< pool::MicroSessionManager > > | m_technologies |
Definition at line 19 of file SessionTool.h.
|
explicit |
Constructors.
Definition at line 15 of file SessionTool.cxx.
|
virtual |
|
delete |
|
finaloverridevirtual |
Implements ISessionTool.
Definition at line 38 of file SessionTool.cxx.
|
finaloverridevirtual |
Commits the transaction.
Implements ISessionTool.
Definition at line 106 of file SessionTool.cxx.
|
finaloverridevirtual |
Commits and holds the transaction.
Implements ISessionTool.
Definition at line 126 of file SessionTool.cxx.
|
finaloverridevirtual |
Creates and returns a new database handle object.
Implements ISessionTool.
Definition at line 146 of file SessionTool.cxx.
|
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.
|
finaloverridevirtual |
Explicitly disconnects all the databases.
If a transaction is active, then all the changes since the last commit are aborted.
Implements ISessionTool.
Definition at line 86 of file SessionTool.cxx.
|
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
|
virtual |
Returns the file catalog in use.
Definition at line 156 of file SessionTool.cxx.
|
finaloverride |
Definition at line 46 of file SessionTool.cxx.
|
finaloverridevirtual |
Return StorageSvc for a given technology used in this session.
Implements ISessionTool.
Definition at line 163 of file SessionTool.cxx.
|
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.
|
finaloverridevirtual |
Returns the technology given a technology type.
Implements ISessionTool.
Definition at line 170 of file SessionTool.cxx.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
inlinefinaloverridevirtual |
|
delete |
|
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.
Retrieves an object from persistent store and return with type information The handle to the reflection class is necessary to later delete the object.
The Guid of the transient class is assumed to be the classID of the token
| token | [IN] reference to the token for the object |
| object | [IN] pointer to memory for the object (created if 0) |
In case of failure zero is returned.
Implements ISessionTool.
Definition at line 54 of file SessionTool.cxx.
|
finaloverridevirtual |
registerForWrite registers an object for writing to the persistent medium higher level interactions with the framework are necessary.
| place | [IN] the placement hint |
| object | [IN] pointer to transient object which will be written |
| type | [IN] reflection class description with the layout of transient object |
Implements ISessionTool.
Definition at line 69 of file SessionTool.cxx.
|
inline |
Definition at line 64 of file SessionTool.h.
|
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.
|
finaloverridevirtual |
Use this FileCatalog and DB ageing value for this session.
Implements ISessionTool.
Definition at line 27 of file SessionTool.cxx.
|
finaloverridevirtual |
Starts a new transaction. Returns the success of the operation.
Implements ISessionTool.
Definition at line 97 of file SessionTool.cxx.
|
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.
|
private |
Definition at line 101 of file SessionTool.h.
|
private |
Definition at line 100 of file SessionTool.h.
|
private |
Definition at line 102 of file SessionTool.h.
|
private |
Definition at line 104 of file SessionTool.h.
|
private |
Definition at line 103 of file SessionTool.h.