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, unregisterSelf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getObjectName, getType
public static JvmThreadsAdmin create()
public void setSamplePeriod(long period)
public java.lang.String getName()
AbstractManagedObject
getName
in interface ManagedObjectMXBean
getName
in class AbstractManagedObject
public int getThreadCount()
JvmThreadsMXBean
getThreadCount
in interface JvmThreadsMXBean
public int getRunnableCount()
getRunnableCount
in interface JvmThreadsMXBean
public int getNativeCount()
getNativeCount
in interface JvmThreadsMXBean
public int getBlockedCount()
getBlockedCount
in interface JvmThreadsMXBean
public int getWaitingCount()
getWaitingCount
in interface JvmThreadsMXBean
public java.lang.String toString()
toString
in class AbstractManagedObject