![]() |
The Gaudi Framework
v33r1 (b1225454)
|
The Application Manager class. More...
#include <src/ApplicationMgr/ApplicationMgr.h>


Public Member Functions | |
| ApplicationMgr (IInterface *=nullptr) | |
| StatusCode | queryInterface (const InterfaceID &iid, void **pinterface) override |
| StatusCode | run () override |
| StatusCode | configure () override |
| StatusCode | terminate () override |
| StatusCode | initialize () override |
| StatusCode | start () override |
| StatusCode | stop () override |
| StatusCode | finalize () override |
| StatusCode | nextEvent (int maxevt) override |
| const std::string & | name () const override |
| EventContext | createEventContext () override |
| implementation of IEventProcessor::createEventContext() More... | |
| StatusCode | executeEvent (EventContext &&ctx) override |
| implementation of IEventProcessor::executeEvent(void*) More... | |
| StatusCode | executeRun (int evtmax) override |
| implementation of IEventProcessor::executeRun(int) More... | |
| StatusCode | stopRun () override |
| implementation of IEventProcessor::stopRun() More... | |
| Gaudi::StateMachine::State | FSMState () const override |
| Gaudi::StateMachine::State | targetFSMState () const override |
| StatusCode | reinitialize () override |
| StatusCode | restart () override |
| StatusCode | sysInitialize () override |
| StatusCode | sysStart () override |
| StatusCode | sysStop () override |
| StatusCode | sysFinalize () override |
| StatusCode | sysReinitialize () override |
| StatusCode | sysRestart () override |
| template<class I > | |
| SmartIF< IComponentManager > & | getManager () |
| SmartIF< ISvcManager > & | svcManager () |
| SmartIF< IAlgManager > & | algManager () |
| SmartIF< ISvcLocator > & | serviceLocator () const override |
| Needed to locate the message service. More... | |
| void | outputLevelUpdate () override |
| Function to call to update the outputLevel of the components (after a change in MessageSvc). More... | |
| void | printAlgsSequences () |
| Print the sequence of algorithms that have been loaded. More... | |
| void | push (EventContext &&ctx) override |
| bool | empty () const override |
| std::optional< Gaudi::Interfaces::IQueueingEventProcessor::ResultType > | pop () override |
Gaudi::Details::PropertyBase handlers | |
| void | evtLoopPropertyHandler (Gaudi::Details::PropertyBase &theProp) |
| StatusCode | decodeExtSvcNameList () |
| StatusCode | decodeCreateSvcNameList () |
| void | createSvcNameListHandler (Gaudi::Details::PropertyBase &) |
| void | extSvcNameListHandler (Gaudi::Details::PropertyBase &theProp) |
| StatusCode | decodeDllNameList () |
| void | dllNameListHandler (Gaudi::Details::PropertyBase &theProp) |
| void | pluginDebugPropertyHandler (Gaudi::Details::PropertyBase &theProp) |
Public Member Functions inherited from PropertyHolder< CommonMessaging< implements< IAppMgrUI, Gaudi::Interfaces::IQueueingEventProcessor, IService, IStateful, INamedInterface, IProperty > > > | |
| PropertyHolder ()=default | |
| Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Details::PropertyBase &prop) |
| Declare a property. More... | |
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, TYPE &value, const std::string &doc="none") |
| Helper to wrap a regular data member and use it as a regular property. More... | |
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, Gaudi::Property< TYPE, VERIFIER, HANDLERS > &prop, const std::string &doc="none") |
| Declare a PropertyBase instance setting name and documentation. More... | |
| Gaudi::Details::PropertyBase * | declareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="") |
| Declare a remote property. More... | |
| StatusCode | setProperty (const Gaudi::Details::PropertyBase &p) override |
| set the property form another property More... | |
| StatusCode | setProperty (const std::string &s) override |
| set the property from the formatted string More... | |
| StatusCode | setProperty (const std::string &n, const std::string &v) override |
| set the property from name and the value More... | |
| StatusCode | setProperty (const std::string &name, const TYPE &value) |
| set the property form the value More... | |
| StatusCode | getProperty (Gaudi::Details::PropertyBase *p) const override |
| get the property More... | |
| const Gaudi::Details::PropertyBase & | getProperty (const std::string &name) const override |
| get the property by name More... | |
| StatusCode | getProperty (const std::string &n, std::string &v) const override |
| convert the property to the string More... | |
| const std::vector< Gaudi::Details::PropertyBase * > & | getProperties () const override |
| get all properties More... | |
| bool | hasProperty (const std::string &name) const override |
| Return true if we have a property with the given name. More... | |
| PropertyHolder (const PropertyHolder &)=delete | |
| PropertyHolder & | operator= (const PropertyHolder &)=delete |
Public Member Functions inherited from CommonMessaging< implements< IAppMgrUI, Gaudi::Interfaces::IQueueingEventProcessor, IService, IStateful, INamedInterface, IProperty > > | |
| MSG::Level | msgLevel () const |
| get the cached level (originally extracted from the embedded MsgStream) More... | |
| bool | msgLevel (MSG::Level lvl) const |
| get the output level from the embedded MsgStream More... | |
Public Member Functions inherited from CommonMessagingBase | |
| virtual | ~CommonMessagingBase ()=default |
| Virtual destructor. More... | |
| const SmartIF< IMessageSvc > & | msgSvc () const |
| The standard message service. More... | |
| MsgStream & | msgStream () const |
| Return an uninitialized MsgStream. More... | |
| MsgStream & | msgStream (const MSG::Level level) const |
| Predefined configurable message stream for the efficient printouts. More... | |
| MsgStream & | always () const |
| shortcut for the method msgStream(MSG::ALWAYS) More... | |
| MsgStream & | fatal () const |
| shortcut for the method msgStream(MSG::FATAL) More... | |
| MsgStream & | err () const |
| shortcut for the method msgStream(MSG::ERROR) More... | |
| MsgStream & | error () const |
| shortcut for the method msgStream(MSG::ERROR) More... | |
| MsgStream & | warning () const |
| shortcut for the method msgStream(MSG::WARNING) More... | |
| MsgStream & | info () const |
| shortcut for the method msgStream(MSG::INFO) More... | |
| MsgStream & | debug () const |
| shortcut for the method msgStream(MSG::DEBUG) More... | |
| MsgStream & | verbose () const |
| shortcut for the method msgStream(MSG::VERBOSE) More... | |
| MsgStream & | msg () const |
| shortcut for the method msgStream(MSG::INFO) More... | |
Protected Types | |
| typedef std::map< unsigned long, SmartIF< IComponentManager > > | ManagersMap |
| Typedef for the map of component managers, the key is the "id" field of the basic InterfaceID of the managed components. More... | |
Protected Member Functions | |
| void | setServiceManager (ISvcManager *) override |
| StatusCode | i_startup () |
| Internal startup routine. More... | |
| StatusCode | GoToState (Gaudi::StateMachine::State state, bool ignoreFailures=false) |
| Reach a state from current state (whichever it is) going through the correct transitions. More... | |
Protected Member Functions inherited from PropertyHolder< CommonMessaging< implements< IAppMgrUI, Gaudi::Interfaces::IQueueingEventProcessor, IService, IStateful, INamedInterface, IProperty > > > | |
| Gaudi::Details::PropertyBase * | property (const std::string &name) const |
Protected Member Functions inherited from CommonMessaging< implements< IAppMgrUI, Gaudi::Interfaces::IQueueingEventProcessor, IService, IStateful, INamedInterface, IProperty > > | |
| MSG::Level | setUpMessaging () const |
| Set up local caches. More... | |
| MSG::Level | resetMessaging () |
| Reinitialize internal states. More... | |
| void | updateMsgStreamOutputLevel (int level) |
| Update the output level of the cached MsgStream. More... | |
Static Private Member Functions | |
| template<typename SELF , typename PIMPL , typename METHOD , typename... ARGS> | |
| static auto | i_delegateToEvtProc (SELF *self, PIMPL &member, std::string_view method_name, METHOD &&method, ARGS &&... args) |
| Helper to delegate calls to event processor implementation. More... | |
Private Attributes | |
| std::vector< std::string > | m_okDlls |
| names of successfully loaded dlls More... | |
Additional Inherited Members | |
Public Types inherited from PropertyHolder< CommonMessaging< implements< IAppMgrUI, Gaudi::Interfaces::IQueueingEventProcessor, IService, IStateful, INamedInterface, IProperty > > > | |
| using | PropertyHolderImpl = PropertyHolder< CommonMessaging< implements< IAppMgrUI, Gaudi::Interfaces::IQueueingEventProcessor, IService, IStateful, INamedInterface, IProperty > > > |
| Typedef used to refer to this class from derived classes, as in. More... | |
Public Types inherited from CommonMessaging< implements< IAppMgrUI, Gaudi::Interfaces::IQueueingEventProcessor, IService, IStateful, INamedInterface, IProperty > > | |
| using | base_class = CommonMessaging |
The Application Manager class.
The main purpose of the Application Manager is to steer any data processing application. This includes all data processing applications for LHCb data in all stages: simulation, reconstruction, analysis, high level triggers, etc. Specific implementations of the ApplicationMgr will be developed to cope with the different environments (on-line, off-line, interactive, batch, etc.).
Definition at line 55 of file ApplicationMgr.h.
|
protected |
Typedef for the map of component managers, the key is the "id" field of the basic InterfaceID of the managed components.
Definition at line 172 of file ApplicationMgr.h.
| ApplicationMgr::ApplicationMgr | ( | IInterface * | = nullptr | ) |
Definition at line 58 of file ApplicationMgr.cpp.
|
inline |
Definition at line 142 of file ApplicationMgr.h.
|
override |
Definition at line 231 of file ApplicationMgr.cpp.
|
override |
implementation of IEventProcessor::createEventContext()
Definition at line 819 of file ApplicationMgr.cpp.
| void ApplicationMgr::createSvcNameListHandler | ( | Gaudi::Details::PropertyBase & | ) |
Definition at line 925 of file ApplicationMgr.cpp.
| StatusCode ApplicationMgr::decodeCreateSvcNameList | ( | ) |
Definition at line 934 of file ApplicationMgr.cpp.
| StatusCode ApplicationMgr::decodeDllNameList | ( | ) |
Definition at line 1006 of file ApplicationMgr.cpp.
| StatusCode ApplicationMgr::decodeExtSvcNameList | ( | ) |
Definition at line 968 of file ApplicationMgr.cpp.
| void ApplicationMgr::dllNameListHandler | ( | Gaudi::Details::PropertyBase & | theProp | ) |
Definition at line 997 of file ApplicationMgr.cpp.
|
override |
Definition at line 811 of file ApplicationMgr.cpp.
| void ApplicationMgr::evtLoopPropertyHandler | ( | Gaudi::Details::PropertyBase & | theProp | ) |
Definition at line 915 of file ApplicationMgr.cpp.
|
override |
implementation of IEventProcessor::executeEvent(void*)
Definition at line 797 of file ApplicationMgr.cpp.
|
override |
implementation of IEventProcessor::executeRun(int)
Definition at line 830 of file ApplicationMgr.cpp.
| void ApplicationMgr::extSvcNameListHandler | ( | Gaudi::Details::PropertyBase & | theProp | ) |
Definition at line 958 of file ApplicationMgr.cpp.
|
override |
Definition at line 582 of file ApplicationMgr.cpp.
|
override |
Definition at line 858 of file ApplicationMgr.cpp.
|
inline |
Definition at line 132 of file ApplicationMgr.h.
|
protected |
Reach a state from current state (whichever it is) going through the correct transitions.
By default, if a transition fails, the chain is interrupted, but the behavior can be changed with the parameter "gnoreFailures"
Definition at line 685 of file ApplicationMgr.cpp.
|
inlinestaticprivate |
Helper to delegate calls to event processor implementation.
Definition at line 315 of file ApplicationMgr.h.
|
protected |
Internal startup routine.
Definition at line 121 of file ApplicationMgr.cpp.
|
override |
Definition at line 419 of file ApplicationMgr.cpp.
|
override |
Definition at line 855 of file ApplicationMgr.cpp.
|
override |
Definition at line 522 of file ApplicationMgr.cpp.
|
override |
Function to call to update the outputLevel of the components (after a change in MessageSvc).
Definition at line 1080 of file ApplicationMgr.cpp.
| void ApplicationMgr::pluginDebugPropertyHandler | ( | Gaudi::Details::PropertyBase & | theProp | ) |
|
override |
Definition at line 815 of file ApplicationMgr.cpp.
| void ApplicationMgr::printAlgsSequences | ( | ) |
Print the sequence of algorithms that have been loaded.
Definition at line 1106 of file ApplicationMgr.cpp.
|
override |
Definition at line 806 of file ApplicationMgr.cpp.
|
override |
Definition at line 95 of file ApplicationMgr.cpp.
|
override |
Definition at line 865 of file ApplicationMgr.cpp.
|
override |
Definition at line 892 of file ApplicationMgr.cpp.
|
override |
Definition at line 771 of file ApplicationMgr.cpp.
|
inlineoverride |
Needed to locate the message service.
Definition at line 149 of file ApplicationMgr.h.
|
inlineoverrideprotected |
Definition at line 159 of file ApplicationMgr.h.
|
override |
Definition at line 480 of file ApplicationMgr.cpp.
|
override |
Definition at line 539 of file ApplicationMgr.cpp.
|
override |
implementation of IEventProcessor::stopRun()
Definition at line 844 of file ApplicationMgr.cpp.
|
inline |
Definition at line 136 of file ApplicationMgr.h.
|
inlineoverride |
Definition at line 107 of file ApplicationMgr.h.
|
inlineoverride |
Definition at line 101 of file ApplicationMgr.h.
|
inlineoverride |
Definition at line 109 of file ApplicationMgr.h.
|
inlineoverride |
Definition at line 111 of file ApplicationMgr.h.
|
inlineoverride |
Definition at line 103 of file ApplicationMgr.h.
|
inlineoverride |
Definition at line 105 of file ApplicationMgr.h.
|
override |
Definition at line 860 of file ApplicationMgr.cpp.
|
override |
Definition at line 631 of file ApplicationMgr.cpp.
|
protected |
Definition at line 260 of file ApplicationMgr.h.
|
protected |
Cached pointer to the manager of algorithms.
Definition at line 184 of file ApplicationMgr.h.
|
protected |
Definition at line 258 of file ApplicationMgr.h.
|
protected |
Definition at line 259 of file ApplicationMgr.h.
|
protected |
Definition at line 278 of file ApplicationMgr.h.
|
protected |
Definition at line 277 of file ApplicationMgr.h.
|
protected |
Defaults for auditors.
Definition at line 276 of file ApplicationMgr.h.
|
protected |
Reference to the class manager.
Definition at line 189 of file ApplicationMgr.h.
|
protected |
Definition at line 261 of file ApplicationMgr.h.
|
protected |
Definition at line 272 of file ApplicationMgr.h.
|
protected |
Property to declare the list of known managers.
Definition at line 178 of file ApplicationMgr.h.
|
protected |
Definition at line 246 of file ApplicationMgr.h.
|
protected |
Definition at line 280 of file ApplicationMgr.h.
|
protected |
Definition at line 254 of file ApplicationMgr.h.
|
protected |
Definition at line 240 of file ApplicationMgr.h.
|
protected |
Definition at line 255 of file ApplicationMgr.h.
|
protected |
Definition at line 243 of file ApplicationMgr.h.
|
protected |
Definition at line 241 of file ApplicationMgr.h.
|
protected |
Definition at line 256 of file ApplicationMgr.h.
|
protected |
Definition at line 248 of file ApplicationMgr.h.
|
protected |
Definition at line 251 of file ApplicationMgr.h.
|
protected |
Definition at line 249 of file ApplicationMgr.h.
|
protected |
Reference to JobOption service.
Definition at line 233 of file ApplicationMgr.h.
|
protected |
Definition at line 219 of file ApplicationMgr.h.
|
protected |
Definition at line 247 of file ApplicationMgr.h.
|
protected |
Definition at line 283 of file ApplicationMgr.h.
|
protected |
Map of known component managers.
It contains (at least) the managers for IService and IAlgorithm. IAlgTool and IAuditor are not mandatory (but a missing manager for IAlgTool will probably not allow any job to run).
Definition at line 176 of file ApplicationMgr.h.
|
protected |
Reference to the message service.
Definition at line 230 of file ApplicationMgr.h.
|
protected |
Definition at line 217 of file ApplicationMgr.h.
|
protected |
Name.
Definition at line 222 of file ApplicationMgr.h.
|
private |
names of successfully loaded dlls
Definition at line 311 of file ApplicationMgr.h.
|
protected |
Definition at line 257 of file ApplicationMgr.h.
|
protected |
Definition at line 212 of file ApplicationMgr.h.
|
protected |
Definition at line 214 of file ApplicationMgr.h.
|
protected |
Definition at line 262 of file ApplicationMgr.h.
|
protected |
Definition at line 304 of file ApplicationMgr.h.
|
protected |
Reference to processing manager object.
Definition at line 232 of file ApplicationMgr.h.
|
protected |
Definition at line 297 of file ApplicationMgr.h.
|
protected |
Reference to a queueing processing manager object.
Definition at line 235 of file ApplicationMgr.h.
|
protected |
Property to record the error conditions occurring during the running.
Definition at line 301 of file ApplicationMgr.h.
Reference to the runable object.
Definition at line 231 of file ApplicationMgr.h.
|
protected |
Definition at line 253 of file ApplicationMgr.h.
|
protected |
|
protected |
Definition at line 191 of file ApplicationMgr.h.
|
protected |
Property to enable/disable the monitoring and reporting of stalled events.
Definition at line 294 of file ApplicationMgr.h.
|
protected |
Internal State.
Definition at line 223 of file ApplicationMgr.h.
|
protected |
Property to enable/disable the "stop on signal" service.
Definition at line 289 of file ApplicationMgr.h.
|
mutableprotected |
Reference to its own service locator (must be instantiated prior to any service!)
Definition at line 187 of file ApplicationMgr.h.
|
protected |
Cached pointer to the manager of services.
Definition at line 181 of file ApplicationMgr.h.
|
protected |
Definition at line 226 of file ApplicationMgr.h.
|
protected |
Definition at line 227 of file ApplicationMgr.h.
|
protected |
Internal State.
Definition at line 224 of file ApplicationMgr.h.
|
protected |
Definition at line 206 of file ApplicationMgr.h.
|
protected |
Definition at line 308 of file ApplicationMgr.h.