Class WriteLockCleanupHook
java.lang.Object
java.lang.Thread
org.owasp.dependencycheck.utils.WriteLockShutdownHook
org.owasp.dependencycheck.utils.WriteLockCleanupHook
- All Implemented Interfaces:
Runnable
A cleanup hook that will register with the JVM to remove the WriteLock file
during an unexpected shutdown.
- Author:
- Jeremy Long
-
Nested Class Summary
Nested classes/interfaces inherited from class Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class 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
-
Constructor Details
-
WriteLockCleanupHook
public WriteLockCleanupHook()
-
-
Method Details
-
add
Add the shutdown hook.- Specified by:
addin classWriteLockShutdownHook- Parameters:
lock- the lock object
-
remove
-
run
-