com.caucho.server.resin
Class ThreadPoolAdmin

java.lang.Object
  extended by com.caucho.management.server.AbstractManagedObject
      extended by com.caucho.server.resin.ThreadPoolAdmin
All Implemented Interfaces:
ManagedObjectMXBean, ThreadPoolMXBean

public class ThreadPoolAdmin
extends AbstractManagedObject
implements ThreadPoolMXBean


Method Summary
static ThreadPoolAdmin create()
          The registration needs to be controlled externally to make the timing work correctly.
 java.lang.String getName()
          The thread pool is unique so it doesn't have a name.
 int getThreadActiveCount()
          Returns the current number of active threads.
 int getThreadCount()
          Returns the total number of threads.
 long getThreadCreateCountTotal()
          Returns the current number of starting threads.
 int getThreadExecutorMax()
          Returns the maximum number of executor threads.
 int getThreadIdleCount()
          Returns the current number of idle threads.
 int getThreadIdleMax()
          Returns the maximum number of idle threads.
 int getThreadIdleMin()
          Returns the minimum number of idle threads.
 int getThreadMax()
          Returns the maximum number of threads.
 long getThreadOverflowCountTotal()
          Returns the current number of overflow threads.
 int getThreadPriorityMin()
          Returns the minimum number of saved priority threads.
 int getThreadPriorityQueueSize()
          Returns the thread priority queue size
 int getThreadStartingCount()
          Returns the current number of starting threads.
 int getThreadTaskQueueSize()
          Returns the thread task queue size
 int getThreadWaitCount()
          Returns the current number of waiting threads.
 void register()
           
 void unregister()
           
 
Methods inherited from class com.caucho.management.server.AbstractManagedObject
addObjectNameProperties, getObjectName, getType, registerSelf, toString, 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 ThreadPoolAdmin create()
The registration needs to be controlled externally to make the timing work correctly.


getName

public java.lang.String getName()
The thread pool is unique so it doesn't have a name.

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

getThreadMax

public int getThreadMax()
Returns the maximum number of threads.

Specified by:
getThreadMax in interface ThreadPoolMXBean

getThreadExecutorMax

public int getThreadExecutorMax()
Returns the maximum number of executor threads.

Specified by:
getThreadExecutorMax in interface ThreadPoolMXBean

getThreadIdleMin

public int getThreadIdleMin()
Returns the minimum number of idle threads.

Specified by:
getThreadIdleMin in interface ThreadPoolMXBean

getThreadIdleMax

public int getThreadIdleMax()
Returns the maximum number of idle threads.

Specified by:
getThreadIdleMax in interface ThreadPoolMXBean

getThreadPriorityMin

public int getThreadPriorityMin()
Returns the minimum number of saved priority threads.

Specified by:
getThreadPriorityMin in interface ThreadPoolMXBean

getThreadCount

public int getThreadCount()
Returns the total number of threads.

Specified by:
getThreadCount in interface ThreadPoolMXBean

getThreadActiveCount

public int getThreadActiveCount()
Returns the current number of active threads.

Specified by:
getThreadActiveCount in interface ThreadPoolMXBean

getThreadStartingCount

public int getThreadStartingCount()
Returns the current number of starting threads.

Specified by:
getThreadStartingCount in interface ThreadPoolMXBean

getThreadIdleCount

public int getThreadIdleCount()
Returns the current number of idle threads.

Specified by:
getThreadIdleCount in interface ThreadPoolMXBean

getThreadWaitCount

public int getThreadWaitCount()
Returns the current number of waiting threads.

Specified by:
getThreadWaitCount in interface ThreadPoolMXBean

getThreadCreateCountTotal

public long getThreadCreateCountTotal()
Returns the current number of starting threads.

Specified by:
getThreadCreateCountTotal in interface ThreadPoolMXBean

getThreadOverflowCountTotal

public long getThreadOverflowCountTotal()
Returns the current number of overflow threads.

Specified by:
getThreadOverflowCountTotal in interface ThreadPoolMXBean

getThreadPriorityQueueSize

public int getThreadPriorityQueueSize()
Returns the thread priority queue size

Specified by:
getThreadPriorityQueueSize in interface ThreadPoolMXBean

getThreadTaskQueueSize

public int getThreadTaskQueueSize()
Returns the thread task queue size

Specified by:
getThreadTaskQueueSize in interface ThreadPoolMXBean

register

public void register()

unregister

public void unregister()