java.lang
Class Shutdown

java.lang.Object
  |
  +--java.lang.Shutdown

class Shutdown
extends Object

Package-private utility class containing data structures and logic governing the virtual-machine shutdown sequence.

Since:
1.3
Version:
1.8, 01/12/03
Author:
Mark Reinhold

Field Summary
private static int FINALIZERS
           
private static HashSet hooks
           
private static int HOOKS
           
private static Object lock
           
private static boolean runFinalizersOnExit
           
private static int RUNNING
           
private static int state
           
 
Constructor Summary
(package private) Shutdown()
           
 
Method Summary
(package private) static void add(Thread hook)
           
(package private) static void exit(int status)
           
(package private) static void halt(int status)
           
(package private) static boolean remove(Thread hook)
           
private static void runAllFinalizers()
           
private static void runHooks()
           
private static void sequence()
           
(package private) static void setRunFinalizersOnExit(boolean run)
           
(package private) static void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RUNNING

private static final int RUNNING

HOOKS

private static final int HOOKS

FINALIZERS

private static final int FINALIZERS

state

private static int state

runFinalizersOnExit

private static boolean runFinalizersOnExit

hooks

private static HashSet hooks

lock

private static Object lock
Constructor Detail

Shutdown

Shutdown()
Method Detail

setRunFinalizersOnExit

static void setRunFinalizersOnExit(boolean run)

add

static void add(Thread hook)

remove

static boolean remove(Thread hook)

runHooks

private static void runHooks()

halt

static void halt(int status)

runAllFinalizers

private static void runAllFinalizers()

sequence

private static void sequence()

exit

static void exit(int status)

shutdown

static void shutdown()


comments?