Rio Project 4.2 API Documentation



org.rioproject.watch
Class ThreadDeadlockMonitor

java.lang.Object
  extended by org.rioproject.watch.ThreadDeadlockMonitor

public class ThreadDeadlockMonitor
extends Object

Monitor thread deadlocks for a Java Virtual Machine.


Field Summary
static String ACCESSOR
           
static String ID
           
 
Constructor Summary
ThreadDeadlockMonitor()
           
 
Method Summary
 Calculable getThreadDeadlockCalculable()
           
static WatchDescriptor getWatchDescriptor()
          Get the default WatchDescriptor for this utility.
 void setThreadMXBean(ThreadMXBean threadMXBean)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
See Also:
Constant Field Values

ACCESSOR

public static final String ACCESSOR
See Also:
Constant Field Values
Constructor Detail

ThreadDeadlockMonitor

public ThreadDeadlockMonitor()
Method Detail

setThreadMXBean

public void setThreadMXBean(ThreadMXBean threadMXBean)

getThreadDeadlockCalculable

public Calculable getThreadDeadlockCalculable()

getWatchDescriptor

public static WatchDescriptor getWatchDescriptor()
Get the default WatchDescriptor for this utility. This allows the ThreadDeadlockMonitor to be used by the SLA framework.

Returns:
A WatchDescriptor set to poll every 5 seconds, checking if any threads are deadlocked.

Copyright © Rio Project.

Copyright © 2006-2011 Rio Project. All Rights Reserved.