|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface to the thread system of the JVM.
| Method Summary | |
java.util.Collection |
getAllThreads()
Returns a Collection of all the Threads running in the VM. |
int |
getDaemonThreadCount()
Returns the number of daemon threads in the system. |
java.lang.Thread |
getThread(int id)
Returns a thread matching the specified id. |
java.util.Collection |
getThreads(java.lang.String name)
Returns a Collection with all the threads with the specified name. |
ThreadSnapshot |
getThreadSnapshot(int id)
Get a snapshot of a thread in the JVM. |
ThreadSnapshot |
getThreadSnapshot(java.lang.Thread t)
Get a snapshot of a thread in the JVM. |
java.util.Collection |
getThreadSnapshots()
Returns a Collection of ThreadSnapshots for all the live threads in the JVM. |
java.util.Collection |
getThreadSnapshots(java.lang.String name)
Gets snapshots for the threads matching the specified name. |
java.lang.String |
getThreadStackDump()
Convenience method returning a thread stack dump for all live threads in the system. |
int |
getTotalThreadCount()
Returns the total number of running threads in the system, including daemon threads. |
boolean |
isUsingThinThreads()
Returns true if the thread system is using thin treads, false otherwise. |
| Methods inherited from interface com.bea.jvm.Describable |
getDescription |
| Method Detail |
public java.util.Collection getThreadSnapshots()
throws NotAvailableException
Note: The snapshot of the threads only includes live threads. Other ones are either just newly created java objects or dead.
NotAvailableException - if this functionality isn't available in
the JVM.ThreadSnapshot
public ThreadSnapshot getThreadSnapshot(java.lang.Thread t)
throws NotAvailableException
t - thread to get a snapshot for.
NotAvailableException - if this functionality isn't available in
the JVM.ThreadSnapshot
public java.util.Collection getThreadSnapshots(java.lang.String name)
throws NotAvailableException
name - the name of the threads to find and get snapshots for.
NotAvailableException - if this functionality isn't available in
the JVM.ThreadSnapshot
public ThreadSnapshot getThreadSnapshot(int id)
throws NotAvailableException,
NoSuchThreadException
id - the id of thread to get a snapshot for.
NoSuchThreadException - if no thread matching the id can be found.
NotAvailableException - if this functionality isn't available in
this JVM.
public int getTotalThreadCount()
throws NotAvailableException
NotAvailableException - if this functionality isn't available in
this JVM.
public int getDaemonThreadCount()
throws NotAvailableException
NotAvailableException - if this functionality isn't available in
this JVM.
public java.util.Collection getAllThreads()
throws NotAvailableException
NotAvailableException - if this functionality isn't available in
this JVM.
public java.util.Collection getThreads(java.lang.String name)
throws NotAvailableException
name - the name of thread to find. If name is null, a
NullPointerException will be thrown.
NotAvailableException - if this functionality isn't available in
this JVM.
public java.lang.Thread getThread(int id)
throws NotAvailableException,
NoSuchThreadException
id - the thread id of thread to find.
NoSuchThreadException - if no thread matching the id can be found.
NotAvailableException - if this functionality isn't available in
this JVM.
public boolean isUsingThinThreads()
throws NotAvailableException
NotAvailableException - if this functionality isn't available in
this JVM.
public java.lang.String getThreadStackDump()
throws NotAvailableException
NotAvailableException - if this functionality isn't available in
this JVM.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||