public abstract class ThreadsCollector 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 | Field and Description |
---|---|
static String |
PROP_THREAD_DIED
Property name constant.
|
static String |
PROP_THREAD_GROUP_ADDED
Property name constant.
|
static String |
PROP_THREAD_RESUMED
Property name constant.
|
static String |
PROP_THREAD_STARTED
Property name constant.
|
static String |
PROP_THREAD_SUSPENDED
Property name constant.
|
Constructor and Description |
---|
ThreadsCollector() |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Add a PropertyChangeListener to be notified about threads changes.
|
protected void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue) |
abstract List<JPDAThread> |
getAllThreads()
Returns all threads that exist in the debuggee.
|
abstract DeadlockDetector |
getDeadlockDetector()
Creates a deadlock detector.
|
void |
removePropertyChangeListener(PropertyChangeListener l)
Remove a PropertyChangeListener.
|
public static final String PROP_THREAD_STARTED
public static final String PROP_THREAD_DIED
public static final String PROP_THREAD_GROUP_ADDED
public static final String PROP_THREAD_SUSPENDED
public static final String PROP_THREAD_RESUMED
public final void addPropertyChangeListener(PropertyChangeListener l)
l
- The listenerpublic final void removePropertyChangeListener(PropertyChangeListener l)
l
- The listenerprotected final void firePropertyChange(String propertyName, Object oldValue, Object newValue)
public abstract List<JPDAThread> getAllThreads()
public abstract DeadlockDetector getDeadlockDetector()