|
Gaudi Framework, version v23r8 |
| Home | Generated: Fri May 31 2013 |
Implementation of Gaudi::ISignalMonitor. More...


Public Types | |
| typedef struct sigaction | handler_t |
Public Types inherited from extends1< Service, Gaudi::ISignalMonitor > | |
| typedef extends1 | base_class |
| Typedef to this class. | |
| typedef extend_interfaces1 < Gaudi::ISignalMonitor > | extend_interfaces_base |
| Typedef to the base of this class. | |
| typedef extend_interfaces_base::ext_iids | interfaces |
| MPL set of all the implemented interfaces. | |
Public Types inherited from extend_interfaces1< Gaudi::ISignalMonitor > | |
| typedef Gaudi::ISignalMonitor::iid::iids::type | ext_iids |
| MPL set of interfaces extended by this one. | |
Public Member Functions | |
| void | monitorSignal (int signum, bool propagate) |
| Declare a signal to be monitored. | |
| void | ignoreSignal (int signum) |
| Remove the specific signal handler for the requested signal, restoring the previous signal handler. | |
| bool | gotSignal (int signum) const |
| Check if the given signal has been received. | |
| void | setSignal (int signum) |
| Set the flag for the given signal, as if the signal was received. | |
| void | clearSignal (int signum) |
| Clear the flag for the given signal, so that a new occurrence can be identified. | |
| SignalMonitorSvc (const std::string &name, ISvcLocator *svcLoc) | |
| Initialize internal variables of the service and set the instance pointer. | |
| virtual | ~SignalMonitorSvc () |
| Stop monitoring signals and clear the instance pointer. | |
Public Member Functions inherited from extends1< Service, Gaudi::ISignalMonitor > | |
| extends1 (A1 a1, A2 a2, A3 a3) | |
| Templated constructor with 3 arguments. | |
| extends1 (A1 a1, A2 a2) | |
| Templated constructor with 2 arguments. | |
| extends1 (A1 a1) | |
| Templated constructor with 1 argument. | |
| extends1 () | |
| Default constructor. | |
| virtual void * | i_cast (const InterfaceID &tid) const |
| Implementation of IInterface::i_cast. | |
| virtual StatusCode | queryInterface (const InterfaceID &ti, void **pp) |
| Implementation of IInterface::queryInterface. | |
| virtual std::vector< std::string > | getInterfaceNames () const |
| Implementation of IInterface::getInterfaceNames. | |
| virtual | ~extends1 () |
| Virtual destructor. | |
Public Member Functions inherited from Service | |
| virtual unsigned long | release () |
| Release Interface instance. | |
| virtual const std::string & | name () const |
| Retrieve name of the service. | |
| virtual StatusCode | configure () |
| virtual StatusCode | initialize () |
| virtual StatusCode | start () |
| virtual StatusCode | stop () |
| virtual StatusCode | finalize () |
| virtual StatusCode | terminate () |
| virtual Gaudi::StateMachine::State | FSMState () const |
| virtual Gaudi::StateMachine::State | targetFSMState () const |
| virtual StatusCode | reinitialize () |
| virtual StatusCode | restart () |
| virtual StatusCode | sysInitialize () |
| Initialize Service. | |
| virtual StatusCode | sysStart () |
| Initialize Service. | |
| virtual StatusCode | sysStop () |
| Initialize Service. | |
| virtual StatusCode | sysFinalize () |
| Finalize Service. | |
| virtual StatusCode | sysReinitialize () |
| Re-initialize the Service. | |
| virtual StatusCode | sysRestart () |
| Re-initialize the Service. | |
| virtual StatusCode | setProperty (const Property &p) |
| virtual StatusCode | setProperty (const std::string &s) |
| virtual StatusCode | setProperty (const std::string &n, const std::string &v) |
| virtual StatusCode | getProperty (Property *p) const |
| virtual const Property & | getProperty (const std::string &name) const |
| virtual StatusCode | getProperty (const std::string &n, std::string &v) const |
| virtual const std::vector < Property * > & | getProperties () const |
| template<class TYPE > | |
| StatusCode | setProperty (const std::string &name, const TYPE &value) |
| set the property form the value | |
| Service (const std::string &name, ISvcLocator *svcloc) | |
| Standard Constructor. | |
| SmartIF< ISvcLocator > & | serviceLocator () const |
| Retrieve pointer to service locator. | |
| StatusCode | setProperties () |
| Method for setting declared properties to the values specified for the job. | |
| template<class T > | |
| StatusCode | service (const std::string &name, const T *&psvc, bool createIf=true) const |
| Access a service by name, creating it if it doesn't already exist. | |
| template<class T > | |
| StatusCode | service (const std::string &name, T *&psvc, bool createIf=true) const |
| template<class T > | |
| StatusCode | service (const std::string &svcType, const std::string &svcName, T *&psvc) const |
| Access a service by name and type, creating it if it doesn't already exist. | |
| template<class T > | |
| Property * | declareProperty (const std::string &name, T &property, const std::string &doc="none") const |
| Declare the named property. | |
| Property * | declareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="") const |
| Declare remote named properties. | |
| SmartIF< IAuditorSvc > & | auditorSvc () const |
| The standard auditor service.May not be invoked before sysInitialize() has been invoked. | |
Public Member Functions inherited from CommonMessaging< implements3< IService, IProperty, IStateful > > | |
| CommonMessaging (const A1 &a1, const A2 &a2, const A3 &a3) | |
| Templated constructor with 3 arguments. | |
| CommonMessaging (const A1 &a1, const A2 &a2) | |
| Templated constructor with 2 arguments. | |
| CommonMessaging (const A1 &a1) | |
| Templated constructor with 1 argument. | |
| CommonMessaging () | |
| Default constructor. | |
| virtual | ~CommonMessaging () |
| Virtual destructor. | |
| SmartIF< IMessageSvc > & | msgSvc () const |
| The standard message service. | |
| MsgStream & | msgStream () const |
| Return an uninitialized MsgStream. | |
| MsgStream & | msgStream (const MSG::Level level) const |
| Predefined configurable message stream for the efficient printouts. | |
| MsgStream & | always () const |
| shortcut for the method msgStream(MSG::ALWAYS) | |
| MsgStream & | fatal () const |
| shortcut for the method msgStream(MSG::FATAL) | |
| MsgStream & | err () const |
| shortcut for the method msgStream(MSG::ERROR) | |
| MsgStream & | error () const |
| shortcut for the method msgStream(MSG::ERROR) | |
| MsgStream & | warning () const |
| shortcut for the method msgStream(MSG::WARNING) | |
| MsgStream & | info () const |
| shortcut for the method msgStream(MSG::INFO) | |
| MsgStream & | debug () const |
| shortcut for the method msgStream(MSG::DEBUG) | |
| MsgStream & | verbose () const |
| shortcut for the method msgStream(MSG::VERBOSE) | |
| MsgStream & | msg () const |
| shortcut for the method msgStream(MSG::INFO) | |
| MSG::Level | msgLevel () const |
| get the output level from the embedded MsgStream | |
| bool | msgLevel (MSG::Level lvl) const |
| get the output level from the embedded MsgStream | |
Public Member Functions inherited from extend_interfaces1< Gaudi::ISignalMonitor > | |
| virtual | ~extend_interfaces1 () |
| Virtual destructor. | |
Public Member Functions inherited from Gaudi::ISignalMonitor | |
| DeclareInterfaceID (ISignalMonitor, 1, 0) | |
| InterfaceID. | |
Public Member Functions inherited from IInterface | |
| virtual unsigned long | addRef ()=0 |
| Increment the reference count of Interface instance. | |
| virtual unsigned long | release ()=0 |
| Release Interface instance. | |
| virtual unsigned long | refCount () const =0 |
| Current reference count. | |
| virtual | ~IInterface () |
| Virtual destructor. | |
Private Types | |
| enum | MonitoringMode { ignored, trap, propagate } |
| Possible monitoring modes. More... | |
Private Member Functions | |
| void | i_handle (int signum) |
Static Private Member Functions | |
| static void | setInstance (SignalMonitorSvc *i) |
| static SignalMonitorSvc * | instance () |
| Method to get the singleton instance. | |
| static void | dispatcher (int signum) |
| Signal handler function. | |
Private Attributes | |
| MonitoringMode | m_monitored [NSIG] |
| Array of flags to keep track of monitored signals. | |
| sig_atomic_t | m_caught [NSIG] |
| Array of flags for received signals. | |
| handler_t | m_defaultAction |
| Helper variable for default signal action. | |
| handler_t | m_oldActions [NSIG] |
| List of replaced signal actions (for the recovery when disable the monitoring). | |
Static Private Attributes | |
| static SignalMonitorSvc * | s_instance = 0 |
| Pointer to the current instance. | |
Additional Inherited Members | |
Static Public Member Functions inherited from IInterface | |
| static const InterfaceID & | interfaceID () |
| Return an instance of InterfaceID identifying the interface. | |
Protected Member Functions inherited from Service | |
| virtual | ~Service () |
| Standard Destructor. | |
| int | outputLevel () const |
get the Service's output level | |
Protected Attributes inherited from Service | |
| IntegerProperty | m_outputLevel |
| Service output level. | |
| Gaudi::StateMachine::State | m_state |
| Service state. | |
| Gaudi::StateMachine::State | m_targetState |
| Service state. | |
Implementation of Gaudi::ISignalMonitor.
If instantiated, intercepts the system signals and keep track of the recorded ones.
The signal to be monitored have to be declared via the method monitorSignal(). It can be interrogated to check if a signal has been received.
Definition at line 26 of file SignalMonitorSvc.cpp.
| typedef struct sigaction Gaudi::Utils::SignalMonitorSvc::handler_t |
Definition at line 31 of file SignalMonitorSvc.cpp.
|
private |
Possible monitoring modes.
Definition at line 112 of file SignalMonitorSvc.cpp.
|
inline |
Initialize internal variables of the service and set the instance pointer.
Definition at line 85 of file SignalMonitorSvc.cpp.
|
inlinevirtual |
Stop monitoring signals and clear the instance pointer.
Definition at line 103 of file SignalMonitorSvc.cpp.
|
inlinevirtual |
Clear the flag for the given signal, so that a new occurrence can be identified.
Implements Gaudi::ISignalMonitor.
Definition at line 80 of file SignalMonitorSvc.cpp.
|
staticprivate |
Signal handler function.
Definition at line 161 of file SignalMonitorSvc.cpp.
|
inlinevirtual |
Check if the given signal has been received.
Implements Gaudi::ISignalMonitor.
Definition at line 70 of file SignalMonitorSvc.cpp.
|
inlineprivate |
Definition at line 126 of file SignalMonitorSvc.cpp.
|
inlinevirtual |
Remove the specific signal handler for the requested signal, restoring the previous signal handler.
Implements Gaudi::ISignalMonitor.
Definition at line 57 of file SignalMonitorSvc.cpp.
|
inlinestaticprivate |
Method to get the singleton instance.
Bypass the serviceLocator for efficiency.
Definition at line 152 of file SignalMonitorSvc.cpp.
|
inlinevirtual |
Declare a signal to be monitored.
It installs a signal handler for the requested signal.
Implements Gaudi::ISignalMonitor.
Definition at line 36 of file SignalMonitorSvc.cpp.
|
inlinestaticprivate |
Definition at line 146 of file SignalMonitorSvc.cpp.
|
inlinevirtual |
Set the flag for the given signal, as if the signal was received.
Implements Gaudi::ISignalMonitor.
Definition at line 75 of file SignalMonitorSvc.cpp.
|
private |
Array of flags for received signals.
Definition at line 120 of file SignalMonitorSvc.cpp.
|
private |
Helper variable for default signal action.
Definition at line 122 of file SignalMonitorSvc.cpp.
|
private |
Array of flags to keep track of monitored signals.
Definition at line 118 of file SignalMonitorSvc.cpp.
|
private |
List of replaced signal actions (for the recovery when disable the monitoring).
Definition at line 124 of file SignalMonitorSvc.cpp.
|
staticprivate |
Pointer to the current instance.
Definition at line 144 of file SignalMonitorSvc.cpp.