@ManagedObject @Description(value="Grizzly ThreadPool (typically shared between Transport instances).") public class ThreadPool extends JmxObject
Constructor and Description |
---|
ThreadPool(AbstractThreadPool threadPool) |
Modifier and Type | Method and Description |
---|---|
int |
getCorePoolSize() |
int |
getCurrentAllocatedThreadCount() |
int |
getCurrentTaskCount() |
String |
getJmxName() |
int |
getMaxAllowedThreads() |
String |
getPoolType() |
int |
getTotalAllocatedThreadCount() |
long |
getTotalCompletedTasksCount() |
int |
getTotalTaskQueueOverflowCount() |
boolean |
isStarted() |
protected void |
onDeregister(GrizzlyJmxManager mom)
Method will be called right after this JmxObject is unregistered by the JMX manager.
|
protected void |
onRegister(GrizzlyJmxManager mom,
org.glassfish.gmbal.GmbalMBean bean)
Method will be called right after this JmxObject is registered by the JMX manager.
|
public ThreadPool(AbstractThreadPool threadPool)
public String getJmxName()
getJmxName
in class JmxObject
protected void onRegister(GrizzlyJmxManager mom, org.glassfish.gmbal.GmbalMBean bean)
onRegister
in class JmxObject
mom
- GrizzlyJmxManager
Grizzly JMX manager.bean
- GmbalMBean
, which represents the registration.protected void onDeregister(GrizzlyJmxManager mom)
onDeregister
in class JmxObject
mom
- GrizzlyJmxManager
Grizzly JMX manager.@ManagedAttribute(id="thread-pool-type") @Description(value="The Java type of the thread pool implementation being used.") public String getPoolType()
@ManagedAttribute(id="thread-pool-started") @Description(value="Indiciates whether or not the thread pool has been started.") public boolean isStarted()
true
if this pool has been started, otherwise return
false
@ManagedAttribute(id="thread-pool-max-num-threads") @Description(value="The maximum number of the threads allowed by this thread pool.") public int getMaxAllowedThreads()
@ManagedAttribute(id="thread-pool-core-pool-size") @Description(value="The initial/minimum number of threads managed by this thread pool.") public int getCorePoolSize()
@ManagedAttribute(id="thread-pool-allocated-thread-count") @Description(value="The current number of threads managed by this thread pool.") public int getCurrentAllocatedThreadCount()
@ManagedAttribute(id="thread-pool-total-allocated-thread-count") @Description(value="The total number of threads allocated during the lifetime of this thread pool.") public int getTotalAllocatedThreadCount()
@ManagedAttribute(id="thread-pool-queued-task-count") @Description(value="The number of tasks currently being processed by this thread pool.") public int getCurrentTaskCount()
@ManagedAttribute(id="thread-pool-total-completed-tasks-count") @Description(value="The total number of tasks that have been processed by this thread pool.") public long getTotalCompletedTasksCount()
@ManagedAttribute(id="thread-pool-task-queue-overflow-count") @Description(value="The total number of times the task queue of this thread pool has been saturated.") public int getTotalTaskQueueOverflowCount()
Copyright © 2014 Oracle Corporation. All rights reserved.