public class ERXGracefulShutdown extends Object implements sun.misc.SignalHandler
Modifier and Type | Class and Description |
---|---|
static interface |
ERXGracefulShutdown.GracefulApplication
Interface to be implemented by the WOApplication subclass to gracefully
handle termination.
|
Modifier and Type | Field and Description |
---|---|
protected sun.misc.SignalHandler |
defaultHandler
caches the previous handler for chaining
|
Constructor and Description |
---|
ERXGracefulShutdown() |
Modifier and Type | Method and Description |
---|---|
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) |
protected sun.misc.SignalHandler defaultHandler
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)
Copyright © 2002 – 2024 Project Wonder.