org.eodisp.util
Class DeleteLockFileShutdownHook

java.lang.Object
  extended by java.lang.Thread
      extended by org.eodisp.util.DeleteLockFileShutdownHook
All Implemented Interfaces:
java.lang.Runnable

public class DeleteLockFileShutdownHook
extends java.lang.Thread

Shutdown hook that deletes the .lock file in the working directory on JVM shutdown.

Version:
$Id:$
Author:
ibirrer

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
(package private) static org.apache.log4j.Logger logger
          Log4J logger for this class
(package private)  java.io.File workingDir
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DeleteLockFileShutdownHook(java.io.File workingDir)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

workingDir

java.io.File workingDir

logger

static org.apache.log4j.Logger logger
Log4J logger for this class

Constructor Detail

DeleteLockFileShutdownHook

public DeleteLockFileShutdownHook(java.io.File workingDir)
Parameters:
workingDir - the working directory the lock file is present in.
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread