|
Project Wonder 2.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object er.extensions.ERXGracefulShutdown
Graceful shutdown adds signal handling support for gracefully terminating a WOApplication. The default implementation in ERXApplication simply calls the terminate method. By default only the TERM and INT signals are registered to handle.
Nested Class Summary | |
static interface |
ERXGracefulShutdown.GracefulApplication
Interface to be implemented by the WOApplication subclass to gracefully handle termination. |
Field Summary | |
protected sun.misc.SignalHandler |
defaultHandler
caches the previous handler for chaining |
static ERXLogger |
log
logging support |
Fields inherited from interface sun.misc.SignalHandler |
SIG_DFL, SIG_IGN |
Constructor Summary | |
ERXGracefulShutdown()
|
Method Summary | |
sun.misc.SignalHandler |
defaultHandler()
|
void |
handle(sun.misc.Signal signal)
Signal handling method. |
static void |
installHandler()
Installs signal handlers for the given array of signals. |
static boolean |
isEnabled()
Determines if signal handling is enabled. |
void |
setDefaultHandler(sun.misc.SignalHandler value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final ERXLogger log
protected sun.misc.SignalHandler defaultHandler
Constructor Detail |
public ERXGracefulShutdown()
Method Detail |
public static boolean isEnabled()
public static void installHandler()
public void handle(sun.misc.Signal signal)
handle
in interface sun.misc.SignalHandler
signal
- to be handledpublic sun.misc.SignalHandler defaultHandler()
public void setDefaultHandler(sun.misc.SignalHandler value)
|
Last updated: Do, Dez 9, 2004 12:46 PM CET | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |