public abstract class DeadlockDetector extends Object
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.
Modifier and Type | Class and Description |
---|---|
static class |
DeadlockDetector.Deadlock
Representation of a deadlock - one set of mutually deadlocked threads.
|
Modifier and Type | Field and Description |
---|---|
static String |
PROP_DEADLOCK
Name of property which is fired when deadlock occurs.
|
Constructor and Description |
---|
DeadlockDetector() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final String PROP_DEADLOCK
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 deadlockpublic final void addPropertyChangeListener(PropertyChangeListener l)
l
- The listenerpublic final void removePropertyChangeListener(PropertyChangeListener l)
l
- The listener