org.jasen.update
Class JasenAutoUpdateReaper

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.jasen.thread.StoppableThread
          extended byorg.jasen.update.JasenAutoUpdateReaper
All Implemented Interfaces:
Runnable, Stoppable

public class JasenAutoUpdateReaper
extends StoppableThread

The reaper monitors the auto updater thread and will kill it if it thinks it's stuck in an update cycle.

The auto updater may deadlock if it cannot receive data from the update site, or (more likely) the update contains an executor (AutoUpdateExecutor) which has not exited

Author:
Jason Polites
See Also:
AutoUpdateExecutor

Field Summary
static long killTimeout
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
JasenAutoUpdateReaper(JasenAutoUpdater updater, JasenAutoUpdateManager manager)
           
JasenAutoUpdateReaper(JasenAutoUpdater updater, JasenAutoUpdateManager manager, String name)
           
 
Method Summary
 void finish()
          Stops the reaper.
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

killTimeout

public static long killTimeout
Constructor Detail

JasenAutoUpdateReaper

public JasenAutoUpdateReaper(JasenAutoUpdater updater,
                             JasenAutoUpdateManager manager)

JasenAutoUpdateReaper

public JasenAutoUpdateReaper(JasenAutoUpdater updater,
                             JasenAutoUpdateManager manager,
                             String name)
Parameters:
name -
Method Detail

run

public void run()

finish

public void finish()
Stops the reaper.