hmi.util
Class ThreadDeadlockDetector
java.lang.Object
  
hmi.util.ThreadDeadlockDetector
public class ThreadDeadlockDetector
- extends Object
 
Some class for deadlock detection
- Author:
 
  - Elliott Hughes  (?)
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
threadCheck
private final Timer threadCheck
mbean
private final ThreadMXBean mbean
listeners
private final Collection<ThreadDeadlockDetector.Listener> listeners
DEFAULT_DEADLOCK_CHECK_PERIOD
private static final int DEFAULT_DEADLOCK_CHECK_PERIOD
- The number of milliseconds between checking for deadlocks.
 It may be expensive to check for deadlocks, and it is not
 critical to know so quickly.
- See Also:
 - Constant Field Values
 
 
TIMERDELAY
private static final long TIMERDELAY
- See Also:
 - Constant Field Values
 
ThreadDeadlockDetector
public ThreadDeadlockDetector()
ThreadDeadlockDetector
public ThreadDeadlockDetector(int deadlockCheckPeriod)
checkForDeadlocks
private void checkForDeadlocks()
 
findDeadlockedThreads
private long[] findDeadlockedThreads()
 
fireDeadlockDetected
private void fireDeadlockDetected(Thread[] threads)
 
findMatchingThread
private Thread findMatchingThread(ThreadInfo inf)
 
addListener
public boolean addListener(ThreadDeadlockDetector.Listener l)
 
removeListener
public boolean removeListener(ThreadDeadlockDetector.Listener l)