org.jasen.update
Class JasenAutoUpdateReaper
java.lang.Object
java.lang.Thread
org.jasen.thread.StoppableThread
org.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
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 |
killTimeout
public static long killTimeout
JasenAutoUpdateReaper
public JasenAutoUpdateReaper(JasenAutoUpdater updater,
JasenAutoUpdateManager manager)
JasenAutoUpdateReaper
public JasenAutoUpdateReaper(JasenAutoUpdater updater,
JasenAutoUpdateManager manager,
String name)
- Parameters:
name
-
run
public void run()
finish
public void finish()
- Stops the reaper.