@AMXMetadata(type="thread-pool-mon", group="monitoring") @ManagedObject @Description(value="Thread Pool Statistics") public class ThreadPoolStatsProvider extends Object implements StatsProvider
Modifier and Type | Field and Description |
---|---|
protected org.glassfish.external.statistics.impl.CountStatisticImpl |
coreThreadsCount |
protected org.glassfish.external.statistics.impl.CountStatisticImpl |
currentThreadCount |
protected org.glassfish.external.statistics.impl.CountStatisticImpl |
currentThreadsBusy |
protected org.glassfish.external.statistics.impl.CountStatisticImpl |
maxThreadsCount |
protected org.glassfish.grizzly.threadpool.ThreadPoolConfig |
threadPoolConfig |
protected static List<String> |
threadPoolNames |
protected org.glassfish.external.statistics.impl.CountStatisticImpl |
totalExecutedTasksCount |
Constructor and Description |
---|
ThreadPoolStatsProvider(String name) |
Modifier and Type | Method and Description |
---|---|
org.glassfish.external.statistics.CountStatistic |
getCoreThreadsCount() |
org.glassfish.external.statistics.CountStatistic |
getCurrentThreadCount() |
org.glassfish.external.statistics.CountStatistic |
getCurrentThreadsBusy() |
org.glassfish.external.statistics.CountStatistic |
getMaxThreadsCount() |
Object |
getStatsObject()
Get object, from which StatsProvider can get statistics directly
without listening emitting events.
|
org.glassfish.external.statistics.CountStatistic |
getTotalExecutedTasksCount() |
void |
reset() |
void |
setCoreThreadsEvent(String monitoringId,
int coreNumberOfThreads) |
void |
setMaxThreadsEvent(String monitoringId,
int maxNumberOfThreads) |
void |
setStatsObject(Object object)
Set object, from which StatsProvider can get statistics directly
without listening emitting events.
|
void |
threadDispatchedFromPoolEvent(String monitoringId,
long threadId) |
void |
threadReturnedToPoolEvent(String monitoringId,
long threadId) |
void |
unregisterThreadPool(String name) |
protected final org.glassfish.external.statistics.impl.CountStatisticImpl maxThreadsCount
protected final org.glassfish.external.statistics.impl.CountStatisticImpl coreThreadsCount
protected final org.glassfish.external.statistics.impl.CountStatisticImpl totalExecutedTasksCount
protected final org.glassfish.external.statistics.impl.CountStatisticImpl currentThreadCount
protected final org.glassfish.external.statistics.impl.CountStatisticImpl currentThreadsBusy
protected volatile org.glassfish.grizzly.threadpool.ThreadPoolConfig threadPoolConfig
public ThreadPoolStatsProvider(String name)
public Object getStatsObject()
StatsProvider
getStatsObject
in interface StatsProvider
public void setStatsObject(Object object)
StatsProvider
setStatsObject
in interface StatsProvider
object
- statistics@ManagedAttribute(id="maxthreads") @Description(value="Maximum number of threads allowed in the thread pool") public org.glassfish.external.statistics.CountStatistic getMaxThreadsCount()
@ManagedAttribute(id="corethreads") @Description(value="Core number of threads in the thread pool") public org.glassfish.external.statistics.CountStatistic getCoreThreadsCount()
@ManagedAttribute(id="totalexecutedtasks") @Description(value="Provides the total number of tasks, which were executed by the thread pool") public org.glassfish.external.statistics.CountStatistic getTotalExecutedTasksCount()
@ManagedAttribute(id="currentthreadcount") @Description(value="Provides the number of request processing threads currently in the listener thread pool") public org.glassfish.external.statistics.CountStatistic getCurrentThreadCount()
@ManagedAttribute(id="currentthreadsbusy") @Description(value="Provides the number of request processing threads currently in use in the listener thread pool serving requests.") public org.glassfish.external.statistics.CountStatistic getCurrentThreadsBusy()
public void setMaxThreadsEvent(String monitoringId, int maxNumberOfThreads)
public void setCoreThreadsEvent(String monitoringId, int coreNumberOfThreads)
public void threadDispatchedFromPoolEvent(String monitoringId, long threadId)
public void threadReturnedToPoolEvent(String monitoringId, long threadId)
public void reset()
public void unregisterThreadPool(String name)
Copyright © 2019. All rights reserved.