com.aicas.jamaica.lang
Class SigIntHandler
java.lang.Object
javax.realtime.AsyncEventHandler
com.aicas.jamaica.lang.SigIntHandler
- All Implemented Interfaces:
- Runnable, Schedulable
public class SigIntHandler
- extends AsyncEventHandler
SigIntHandler provides Jamaica's default handler for SIG_INT, i.e.,
the POSIX signal that is sent on a control+c key stroke.
The default handler prints "*** break." to stderr and calls
System.exit(130);
|
Constructor Summary |
SigIntHandler()
Constructor to intialize and activate this SigIntHandler. |
| 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 |
SigIntHandler
public SigIntHandler()
- Constructor to intialize and activate this SigIntHandler.
handleAsyncEvent
public void handleAsyncEvent()
- The event handling routine itself.
On first call, will remove the handler, print "*** break." to
stderr, and call System.exit(130).
- Overrides:
handleAsyncEvent in class AsyncEventHandler
aicas GmbH, Karlsruhe - Germany www.aicas.com
Copyright 2001-2009 aicas GmbH. All Rights Reserved.