|
org.netbeans.api.debugger.jpda/2 2.31.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.api.debugger.jpda.DeadlockDetector
public abstract class DeadlockDetector
Service that detects deadlocks and fires an event when the deadlock occurs.
Since JDI interfaces evolve from one version to another, it's strongly recommended not to implement this abstract class in client code. New methods can be added to this class at any time to keep up with the JDI functionality.
Nested Class Summary | |
---|---|
static class |
DeadlockDetector.Deadlock
Representation of a deadlock - one set of mutually deadlocked threads. |
Field Summary | |
---|---|
static String |
PROP_DEADLOCK
Name of property which is fired when deadlock occurs. |
Constructor Summary | |
---|---|
DeadlockDetector()
|
Method Summary | |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Add a PropertyChangeListener to this deadlock detector. |
protected DeadlockDetector.Deadlock |
createDeadlock(Collection<JPDAThread> threads)
Utility method used by the implementing class to create deadlock instances. |
Set<DeadlockDetector.Deadlock> |
getDeadlocks()
Get the set of detected deadlocks. |
void |
removePropertyChangeListener(PropertyChangeListener l)
Remove a PropertyChangeListener from this deadlock detector. |
protected void |
setDeadlocks(Set<DeadlockDetector.Deadlock> deadlocks)
Used by overriding class to set the deadlocks when found. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PROP_DEADLOCK
Constructor Detail |
---|
public DeadlockDetector()
Method Detail |
---|
public final Set<DeadlockDetector.Deadlock> getDeadlocks()
protected final void setDeadlocks(Set<DeadlockDetector.Deadlock> deadlocks)
deadlocks
- The set of deadlocks.protected final DeadlockDetector.Deadlock createDeadlock(Collection<JPDAThread> threads)
threads
- The threads in deadlock
public final void addPropertyChangeListener(PropertyChangeListener l)
l
- The listenerpublic final void removePropertyChangeListener(PropertyChangeListener l)
l
- The listener
|
org.netbeans.api.debugger.jpda/2 2.31.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |