java.io.Console , ApplicationShutdownHooks, java.io.DeleteOnExitHook
| Modifier and Type | Field and Description |
|---|---|
| private static int | |
| private static final Object | |
| private static final Runnable[] | |
| private static final Object | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static void | |
| pack-priv static native void | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static native void | |
| private static void | |
| private static void | |
| pack-priv static void |
| currentRunningHook | back to summary |
|---|---|
| private static int currentRunningHook | |
| haltLock | back to summary |
|---|---|
| private static final Object haltLock | |
| hooks | back to summary |
|---|---|
| private static final Runnable[] hooks | |
| lock | back to summary |
|---|---|
| private static final Object lock | |
| MAX_SYSTEM_HOOKS | back to summary |
|---|---|
| private static final int MAX_SYSTEM_HOOKS | |
| Shutdown | back to summary |
|---|---|
| pack-priv Shutdown() | |
| add | back to summary |
|---|---|
| pack-priv static void add(int slot, boolean registerShutdownInProgress, Runnable hook) Add a new system shutdown hook. Checks the shutdown state and the hook itself, but does not do any security checks. The registerShutdownInProgress parameter should be false except registering the DeleteOnExitHook since the first file may be added to the delete on exit list by the application shutdown hooks.
| |
| beforeHalt | back to summary |
|---|---|
| pack-priv static native void beforeHalt() | |
| exit | back to summary |
|---|---|
| pack-priv static void exit(int status) | |
| halt | back to summary |
|---|---|
| pack-priv static void halt(int status) | |
| halt0 | back to summary |
|---|---|
| pack-priv static native void halt0(int status) | |
| logRuntimeExit | back to summary |
|---|---|
| private static void logRuntimeExit(int status) | |
| runHooks | back to summary |
|---|---|
| private static void runHooks() | |
| shutdown | back to summary |
|---|---|
| pack-priv static void shutdown() | |