Class ShutdownHook
- java.lang.Object
-
- java.lang.Thread
-
- org.torproject.metrics.collector.cron.ShutdownHook
-
- All Implemented Interfaces:
java.lang.Runnable
public final class ShutdownHook extends java.lang.ThreadScheduler that starts the modules configured in collector.properties.
-
-
Constructor Summary
Constructors Constructor Description ShutdownHook()Names the shutdown thread for debugging purposes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()voidstayAlive()Stay alive until the shutdown thread gets run.-
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
-
-