public abstract class IfsShutdownHook
extends java.lang.Object
The managed shutdown procedure can be started by the Java VM in a shutdown hook operation, but also from other hooks that shouldn't be started before this hook is done, i.e. loggers.
Modifier | Constructor and Description |
---|---|
protected |
IfsShutdownHook()
Protected constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
addShutdownHook(IfsShutdownHook hook)
Registers a new IFS specific virtual-machine shutdown hook.
|
abstract void |
run()
Implement this method to perform any action that should be taken during the
shutdown sequence.
|
static void |
startHooks()
Initiates shutdown procedure before VM will do it.
|
public abstract void run()
Runtime.addShutdownHook(java.lang.Thread)
public static void addShutdownHook(IfsShutdownHook hook)
hook
- an instance extending this class and implementing
the run methodRuntime.addShutdownHook(java.lang.Thread)
public static void startHooks()