com.caucho.server.admin
Class JvmThreadsAdmin

java.lang.Object
  extended by com.caucho.management.server.AbstractManagedObject
      extended by com.caucho.server.admin.JvmThreadsAdmin
All Implemented Interfaces:
JvmThreadsMXBean, ManagedObjectMXBean

public class JvmThreadsAdmin
extends AbstractManagedObject
implements JvmThreadsMXBean

Statistics gathering for threads.


Method Summary
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()
           
 
Methods inherited from class com.caucho.management.server.AbstractManagedObject
addObjectNameProperties, getObjectName, getType, registerSelf, unregisterSelf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.caucho.management.server.ManagedObjectMXBean
getObjectName, getType
 

Method Detail

create

public static JvmThreadsAdmin create()

setSamplePeriod

public void setSamplePeriod(long period)

getName

public java.lang.String getName()
Description copied from class: AbstractManagedObject
The JMX name property of the mbean.

Specified by:
getName in interface ManagedObjectMXBean
Specified by:
getName in class AbstractManagedObject

getThreadCount

public int getThreadCount()
Description copied from interface: JvmThreadsMXBean
Returns the number of active threads.

Specified by:
getThreadCount in interface JvmThreadsMXBean

getRunnableCount

public int getRunnableCount()
Returns the number of JVM threads in the runnable state.

Specified by:
getRunnableCount in interface JvmThreadsMXBean

getNativeCount

public int getNativeCount()
Returns the number of JVM threads running native code.

Specified by:
getNativeCount in interface JvmThreadsMXBean

getBlockedCount

public int getBlockedCount()
Returns the number of JVM threads blocked.

Specified by:
getBlockedCount in interface JvmThreadsMXBean

getWaitingCount

public int getWaitingCount()
Returns the number of JVM threads waiting.

Specified by:
getWaitingCount in interface JvmThreadsMXBean

toString

public java.lang.String toString()
Overrides:
toString in class AbstractManagedObject