org.netbeans.api.debugger.jpda/2 2.31.1

org.netbeans.api.debugger.jpda
Class ThreadsCollector

java.lang.Object
  extended by org.netbeans.api.debugger.jpda.ThreadsCollector

public abstract class ThreadsCollector
extends Object

Collector of threads running inside the debuggee. Fires changes when threads change.

 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.

Since:
2.16

Field Summary
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 Summary
ThreadsCollector()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_THREAD_STARTED

public static final String PROP_THREAD_STARTED
Property name constant.

See Also:
Constant Field Values

PROP_THREAD_DIED

public static final String PROP_THREAD_DIED
Property name constant.

See Also:
Constant Field Values

PROP_THREAD_GROUP_ADDED

public static final String PROP_THREAD_GROUP_ADDED
Property name constant.

See Also:
Constant Field Values

PROP_THREAD_SUSPENDED

public static final String PROP_THREAD_SUSPENDED
Property name constant.

See Also:
Constant Field Values

PROP_THREAD_RESUMED

public static final String PROP_THREAD_RESUMED
Property name constant.

See Also:
Constant Field Values
Constructor Detail

ThreadsCollector

public ThreadsCollector()
Method Detail

addPropertyChangeListener

public final void addPropertyChangeListener(PropertyChangeListener l)
Add a PropertyChangeListener to be notified about threads changes.

Parameters:
l - The listener

removePropertyChangeListener

public final void removePropertyChangeListener(PropertyChangeListener l)
Remove a PropertyChangeListener.

Parameters:
l - The listener

firePropertyChange

protected final void firePropertyChange(String propertyName,
                                        Object oldValue,
                                        Object newValue)

getAllThreads

public abstract List<JPDAThread> getAllThreads()
Returns all threads that exist in the debuggee.

Returns:
all threads

getDeadlockDetector

public abstract DeadlockDetector getDeadlockDetector()
Creates a deadlock detector.

Returns:
deadlock detector with automatic detection of deadlock among suspended threads

org.netbeans.api.debugger.jpda/2 2.31.1

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.