User Manual, Developers Guide and API Documentation

wns::simulator::CPUTimeExhaustedHandler Class Reference

Performs a graceful shutdown. More...

#include <simulator/CPUTimeExhaustedHandler.hpp>

Inheritance diagram for wns::simulator::CPUTimeExhaustedHandler:

Inheritance graph
[legend]
Collaboration diagram for wns::simulator::CPUTimeExhaustedHandler:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CPUTimeExhaustedHandler (wns::events::scheduler::Interface *eventScheduler, int signum)

Private Member Functions

virtual void doCall ()
 Called by wns::simulator::SignalHandler.
virtual void doOnProcessOneEvent ()
 Called from wns::events::scheduler::Interface.

Private Attributes

wns::events::scheduler::InterfaceeventScheduler_
 The event scheduler we're observing for onNextEvent notifications.
sigset_t signalMask_
 The signalmask we need to block and unblock the signal.
int signum_
 The signal number this handler listens to.


Detailed Description

Author:
Marc Schinnenburg <marc@schinnenburg.com>
Sends wns::events::scheduler::Interface::stop(). This signal is sent by SGE (Sun Grid Engine) if the soft limit of any resorce is reached.

Definition at line 51 of file CPUTimeExhaustedHandler.hpp.


Constructor & Destructor Documentation

CPUTimeExhaustedHandler::CPUTimeExhaustedHandler ( wns::events::scheduler::Interface eventScheduler,
int  signum 
)

Definition at line 35 of file CPUTimeExhaustedHandler.cpp.


Member Function Documentation

void CPUTimeExhaustedHandler::doCall (  )  [private, virtual]

Implements wns::simulator::SignalHandlerCallback.

Definition at line 49 of file CPUTimeExhaustedHandler.cpp.

void CPUTimeExhaustedHandler::doOnProcessOneEvent (  )  [private, virtual]

Checks after each event if a graceful shutdown needs to be performed.

Reimplemented from wns::events::scheduler::IgnoreAllNotifications.

Definition at line 56 of file CPUTimeExhaustedHandler.cpp.


Member Data Documentation

Definition at line 80 of file CPUTimeExhaustedHandler.hpp.

Definition at line 90 of file CPUTimeExhaustedHandler.hpp.

Definition at line 85 of file CPUTimeExhaustedHandler.hpp.


The documentation for this class was generated from the following files:

Generated on Sun May 27 03:33:06 2012 for openWNS by  doxygen 1.5.5