public class ProcessDestroyer extends Thread
Process
.
Useful in conjunction with Runtime.addShutdownHook(Thread)
.
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
ProcessDestroyer(Process process)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
addShutdownHook(Process process)
Add a JVM shutdown hook to destroy the process.
|
void |
run() |
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, yield
public ProcessDestroyer(Process process)
process
- The processCopyright © 2011-2016 Three Crickets LLC.