|
Project Wonder 5.0 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objecter.extensions.components.ERXGracefulShutdown
public class 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 org.apache.log4j.Logger |
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 org.apache.log4j.Logger 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.SignalHandlersignal - to be handledpublic sun.misc.SignalHandler defaultHandler()
public void setDefaultHandler(sun.misc.SignalHandler value)
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||