blackboard.platform.monitor.thread
Interface ThreadMonitorService

All Superinterfaces:
MonitorService<ThreadMonitor>

public interface ThreadMonitorService
extends MonitorService<ThreadMonitor>

The ThreadMonitorService class offers a method to obtain ThreadMonitors, as well as various useful helper methods to get more information about the current state of the system thread pool.

Since:
Bb 9.1

Method Summary
 java.util.List<java.lang.management.ThreadInfo> getDeadlockedThreads()
          Returns a list of all deadlocked threads within the system.
 ThreadMonitor getMonitor()
          Returns the ThreadMonitor for the current JVM.
 java.util.List<java.lang.management.ThreadInfo> getThreadDump()
          Returns a complete thread dump of all threads in the system.
 java.util.List<java.lang.String> getThreadNames()
          Returns a list of all current threads' names.
 

Method Detail

getThreadNames

java.util.List<java.lang.String> getThreadNames()
Returns a list of all current threads' names.

Returns:
The names of all currently running threads

getThreadDump

java.util.List<java.lang.management.ThreadInfo> getThreadDump()
Returns a complete thread dump of all threads in the system.

Returns:
A thread dump of the current system

getDeadlockedThreads

java.util.List<java.lang.management.ThreadInfo> getDeadlockedThreads()
Returns a list of all deadlocked threads within the system. If none were found, the list will be empty.

Returns:
All deadlocked threads

getMonitor

ThreadMonitor getMonitor()
Returns the ThreadMonitor for the current JVM.

Returns:
A thread monitor


Copyright 2011 Blackboard, Inc. All Rights Reserved.