JavaScript is disabled on your browser.
java.lang.Object
org.apache.derbyTesting.functionTests.util.DeadlockWatchdog
All Implemented Interfaces:
java.lang.Runnable
public class DeadlockWatchdog
extends java.lang.Object
implements java.lang.Runnable
A deadlock watch utlity. An instance of this class can be created and started
and it will look for a Java level deadlock at the time given if not stopped.
A deadlock is detected using JMX and the ThreadMXBean
Field Summary
Fields
Modifier and Type
Field and Description
private boolean
stopped
private long
timeout
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail
stopped
private boolean stopped
timeout
private long timeout
Method Detail
start
public void start()
run
public void run()
Specified by:
run
in interface java.lang.Runnable
checkForDeadlock
boolean checkForDeadlock()
throws javax.management.MalformedObjectNameException,
javax.management.InstanceNotFoundException,
javax.management.MBeanException,
javax.management.ReflectionException,
java.io.IOException
Throws:
javax.management.MalformedObjectNameException
javax.management.InstanceNotFoundException
javax.management.MBeanException
javax.management.ReflectionException
java.io.IOException
Built on Tue 1970-01-20 05:28:49+0000, from revision ???
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.