public abstract static class DebuggingView.DVSupport extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
DebuggingView.DVSupport.Registration
Declarative registration of a DVSupport implementation.
|
static class |
DebuggingView.DVSupport.STATE
The debugger state.
|
Modifier and Type | Field and Description |
---|---|
static String |
PROP_CURRENT_THREAD
Property name constant.
|
static String |
PROP_DEADLOCK
Name of property which is fired when deadlock occurs.
|
static String |
PROP_STATE |
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.
|
Modifier | Constructor and Description |
---|---|
protected |
DVSupport() |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener pcl)
Add a property change listener.
|
protected DebuggingView.Deadlock |
createDeadlock(Collection<DebuggingView.DVThread> threads)
Utility method used by the implementing class to create deadlock description instances.
|
protected void |
firePropertyChange(PropertyChangeEvent pce) |
protected void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
Fire a property change event.
|
abstract List<DebuggingView.DVThread> |
getAllThreads()
Get listing of all threads at this moment.
|
abstract DebuggingView.DVThread |
getCurrentThread()
Get a current thread, if any.
|
abstract Set<DebuggingView.Deadlock> |
getDeadlocks()
Get the set of detected deadlocks, if any.
|
abstract String |
getDisplayName(DebuggingView.DVThread thread)
Get the display name of the thread.
|
Action[] |
getFilterActions()
Get actions created from the provided filters.
|
protected abstract List<DebuggingView.DVFilter> |
getFilters()
Get the list of filters applied to debugging view.
|
abstract Image |
getIcon(DebuggingView.DVThread thread)
Get the thread icon.
|
abstract Session |
getSession()
Get the session associated with this debugging view.
|
abstract DebuggingView.DVSupport.STATE |
getState()
Get the debugger state.
|
void |
removePropertyChangeListener(PropertyChangeListener pcl)
Remove a property change listener.
|
abstract void |
resume()
Resume the application (all it's threads).
|
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 static final String PROP_CURRENT_THREAD
public static final String PROP_DEADLOCK
public static final String PROP_STATE
public abstract DebuggingView.DVSupport.STATE getState()
public abstract List<DebuggingView.DVThread> getAllThreads()
public abstract DebuggingView.DVThread getCurrentThread()
null
.public abstract String getDisplayName(DebuggingView.DVThread thread)
thread
- the threadpublic abstract Image getIcon(DebuggingView.DVThread thread)
thread
- the threadpublic abstract Session getSession()
public abstract void resume()
public abstract Set<DebuggingView.Deadlock> getDeadlocks()
null
when no deadlocks are detected.protected final DebuggingView.Deadlock createDeadlock(Collection<DebuggingView.DVThread> threads)
threads
- The threads in deadlockprotected abstract List<DebuggingView.DVFilter> getFilters()
public final Action[] getFilterActions()
protected final void firePropertyChange(PropertyChangeEvent pce)
protected final void firePropertyChange(String propertyName, Object oldValue, Object newValue)
propertyName
- the property nameoldValue
- old valuenewValue
- new valuepublic final void addPropertyChangeListener(PropertyChangeListener pcl)
pcl
- the property change listenerpublic final void removePropertyChangeListener(PropertyChangeListener pcl)
pcl
- the property change listener