com.aicas.jamaica.lang
Class SigTermHandler
java.lang.Object
javax.realtime.AsyncEventHandler
com.aicas.jamaica.lang.SigTermHandler
- All Implemented Interfaces:
- Runnable, Schedulable
public class SigTermHandler
- extends AsyncEventHandler
SigIntHandler provides Jamaica's default handler for SIG_TERM, i.e.,
the POSIX signal that is sent by default by the 'kill' command.
The default handler prints "*** terminate." to stderr and calls
System.exit(130);
|
Constructor Summary |
SigTermHandler()
Constructor to intialize and activate this SigTermHandler. |
| Methods inherited from class javax.realtime.AsyncEventHandler |
addIfFeasible, addToFeasibility, finalize, getAndClearPendingFireCount, getAndDecrementPendingFireCount, getAndIncrementPendingFireCount, getMemoryArea, getMemoryParameters, getPendingFireCount, getProcessingGroupParameters, getReleaseParameters, getScheduler, getSchedulingParameters, isDaemon, removeFromFeasibility, run, setDaemon, setIfFeasible, setIfFeasible, setIfFeasible, setIfFeasible, setIfFeasible, setMemoryParameters, setMemoryParametersIfFeasible, setProcessingGroupParameters, setProcessingGroupParametersIfFeasible, setReleaseParameters, setReleaseParametersIfFeasible, setScheduler, setScheduler, setSchedulingParameters, setSchedulingParametersIfFeasible |
SigTermHandler
public SigTermHandler()
- Constructor to intialize and activate this SigTermHandler.
handleAsyncEvent
public void handleAsyncEvent()
- The event handling routine itself.
On first call, will remove the handler, print "*** terminate." to
stderr, and call System.exit(130).
- Overrides:
handleAsyncEvent in class AsyncEventHandler
aicas GmbH, Karlsruhe - Germany www.aicas.com
Copyright 2001-2008 aicas GmbH. All Rights Reserved.