8 #ifndef STALLEDEVENTMONITOR_H_
9 #define STALLEDEVENTMONITOR_H_
71 #endif // STALLEDEVENTMONITOR_H_
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
virtual StatusCode start()
Start the watchdog thread (before entering the event loop).
virtual StatusCode initialize()
Initialization of the service.
bool m_stackTrace
Whether to print a stack-trace on timeout.
Service that monitor the time taken by processing of single events using a separate thread...
SmartIF< IIncidentSvc > m_incidentSvc
Pointer to the incident service.
This class is used for returning status codes from appropriate routines.
Base class used to extend a class implementing other interfaces.
int m_maxTimeoutCount
Number timeouts before aborting the execution (0 means never abort).
unsigned int m_eventTimeout
Number of seconds allowed to process a single event.
StalledEventMonitor(const std::string &name, ISvcLocator *svcLoc)
Constructor.
virtual const std::string & name() const
Retrieve name of the service.
virtual void handle(const Incident &)
Notify the watchdog thread for a new event.
Simple class for asynchronous check of time-out.
Base class for all Incidents (computing events).
virtual ~StalledEventMonitor()
Destructor.
virtual StatusCode finalize()
Finalization of the service.
std::auto_ptr< WatchdogThread > m_watchdog
Pointer to the watchdog thread that checks for the event timeout.
virtual StatusCode stop()
Stop the watchdog thread (after the event loop).
The interface implemented by the IncidentSvc service.