ATLAS Offline Software
|
Facade class for conditions garbage collection. More...
#include <ConditionsCleanerSvc.h>
Public Member Functions | |
ConditionsCleanerSvc (const std::string &name, ISvcLocator *svc) | |
Standard Gaudi constructor. More... | |
virtual StatusCode | initialize () override |
Standard Gaudi initialize method. More... | |
virtual StatusCode | event (const EventContext &ctx, bool allowAsync) override |
Called at the start of each event. More... | |
virtual StatusCode | condObjAdded (const EventContext &ctx, CondContBase &cc) override |
Called after a conditions object has been added. More... | |
virtual StatusCode | printStats () const override |
Print some statistics about the garbage collection. More... | |
virtual StatusCode | reset () override |
Clear the internal state of the service. More... | |
Private Attributes | |
ServiceHandle< Athena::IConditionsCleanerSvc > | m_cleanerSvc |
Facade class for conditions garbage collection.
This forwards calls to IConditionsCleanerSvc
to the service that actually implements it. Done like this so that we need only specify the concrete class in one place. The concrete service may be left unspecified, in which case no garbage collection will be done.
Definition at line 35 of file ConditionsCleanerSvc.h.
Athena::ConditionsCleanerSvc::ConditionsCleanerSvc | ( | const std::string & | name, |
ISvcLocator * | svc | ||
) |
Standard Gaudi constructor.
name | Service name. |
svc | Service locator. |
Definition at line 25 of file ConditionsCleanerSvc.cxx.
|
overridevirtual |
Called after a conditions object has been added.
ctx | The current event context. |
cc | The container to which the object was added. |
Definition at line 70 of file ConditionsCleanerSvc.cxx.
|
overridevirtual |
Called at the start of each event.
ctx | The current event context. |
allowAsync | If true, then cleaning may be run in an asynchronous TBB task. |
Definition at line 55 of file ConditionsCleanerSvc.cxx.
|
overridevirtual |
|
overridevirtual |
Print some statistics about the garbage collection.
Would generally be called in finalize(), but broken out as a separate interface for testing/debugging purposes.
Definition at line 85 of file ConditionsCleanerSvc.cxx.
|
overridevirtual |
Clear the internal state of the service.
Only for testing. Don't call if any other thread may be touching the service.
Definition at line 98 of file ConditionsCleanerSvc.cxx.
|
private |
Definition at line 88 of file ConditionsCleanerSvc.h.