public class JvmThreadsAdmin extends AbstractManagedObject implements JvmThreadsMXBean
| Modifier and Type | Method and Description |
|---|---|
static JvmThreadsAdmin |
create() |
int |
getBlockedCount()
Returns the number of JVM threads blocked.
|
java.lang.String |
getName()
The JMX name property of the mbean.
|
int |
getNativeCount()
Returns the number of JVM threads running native code.
|
int |
getRunnableCount()
Returns the number of JVM threads in the runnable state.
|
int |
getThreadCount()
Returns the number of active threads.
|
int |
getWaitingCount()
Returns the number of JVM threads waiting.
|
void |
setSamplePeriod(long period) |
java.lang.String |
toString() |
addObjectNameProperties, getObjectName, getType, registerSelf, unregisterSelfclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetObjectName, getTypepublic static JvmThreadsAdmin create()
public void setSamplePeriod(long period)
public java.lang.String getName()
AbstractManagedObjectgetName in interface ManagedObjectMXBeangetName in class AbstractManagedObjectpublic int getThreadCount()
JvmThreadsMXBeangetThreadCount in interface JvmThreadsMXBeanpublic int getRunnableCount()
getRunnableCount in interface JvmThreadsMXBeanpublic int getNativeCount()
getNativeCount in interface JvmThreadsMXBeanpublic int getBlockedCount()
getBlockedCount in interface JvmThreadsMXBeanpublic int getWaitingCount()
getWaitingCount in interface JvmThreadsMXBeanpublic java.lang.String toString()
toString in class AbstractManagedObject