Package ws.schild.jave.process
Class ProcessKiller
- java.lang.Object
-
- java.lang.Thread
-
- ws.schild.jave.process.ProcessKiller
-
- All Implemented Interfaces:
java.lang.Runnable
public class ProcessKiller extends java.lang.ThreadA package-private utility to add a shutdown hook to kill ongoing encoding processes at the jvm shutdown.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.ProcessprocessThe process to kill.
-
Constructor Summary
Constructors Constructor Description ProcessKiller(java.lang.Process process)Builds the killer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()It kills the supplied process.-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-