public class VMShutdownHook
extends java.lang.Thread
| Modifier and Type | Field and Description |
|---|---|
private static java.util.Set |
files |
private static VMShutdownHook |
instance |
private boolean |
isRegistered |
private static org.apache.commons.logging.Log |
log |
| Modifier | Constructor and Description |
|---|---|
private |
VMShutdownHook() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
add(java.io.File file) |
(package private) static VMShutdownHook |
hook() |
boolean |
isRegistered() |
(package private) void |
remove(java.io.File file) |
void |
run() |
void |
setRegistered(boolean isRegistered) |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprivate static final org.apache.commons.logging.Log log
private static VMShutdownHook instance
private static java.util.Set files
private boolean isRegistered
static VMShutdownHook hook()
void remove(java.io.File file)
void add(java.io.File file)
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic boolean isRegistered()
public void setRegistered(boolean isRegistered)