Class ThreadPoolStatsProviderGlobal
- java.lang.Object
-
- com.sun.enterprise.v3.services.impl.monitor.stats.ThreadPoolStatsProvider
-
- com.sun.enterprise.v3.services.impl.monitor.stats.ThreadPoolStatsProviderGlobal
-
- All Implemented Interfaces:
StatsProvider
@AMXMetadata(type="thread-pool-mon", group="monitoring") @ManagedObject @Description("Thread Pool Statistics") public class ThreadPoolStatsProviderGlobal extends ThreadPoolStatsProviderServer wide Thread Pool statistics- Author:
- Amy Roh
-
-
Field Summary
-
Fields inherited from class com.sun.enterprise.v3.services.impl.monitor.stats.ThreadPoolStatsProvider
coreThreadsCount, currentThreadCount, currentThreadsBusy, maxThreadsCount, threadPoolConfig, threadPoolNames, totalExecutedTasksCount
-
-
Constructor Summary
Constructors Constructor Description ThreadPoolStatsProviderGlobal(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.glassfish.external.statistics.CountStatisticgetCurrentThreadCount()voidreset()voidsetCoreThreadsEvent(String monitoringId, int coreNumberOfThreads)voidsetMaxThreadsEvent(String monitoringId, int maxNumberOfThreads)voidsubtractBusyThreads(long busyThreads)voidthreadDispatchedFromPoolEvent(String monitoringId, long threadId)voidthreadReturnedToPoolEvent(String monitoringId, long threadId)-
Methods inherited from class com.sun.enterprise.v3.services.impl.monitor.stats.ThreadPoolStatsProvider
getCoreThreadsCount, getCurrentThreadsBusy, getCurrentThreadUsage, getMaxThreadsCount, getStatsObject, getTotalExecutedTasksCount, setStatsObject, unregisterThreadPool
-
-
-
-
Constructor Detail
-
ThreadPoolStatsProviderGlobal
public ThreadPoolStatsProviderGlobal(String name)
-
-
Method Detail
-
getCurrentThreadCount
@ManagedAttribute(id="currentthreadcount") @Description("Provides the number of request processing threads currently in the listener thread pool") public org.glassfish.external.statistics.CountStatistic getCurrentThreadCount()- Overrides:
getCurrentThreadCountin classThreadPoolStatsProvider
-
setMaxThreadsEvent
public void setMaxThreadsEvent(String monitoringId, int maxNumberOfThreads)
- Overrides:
setMaxThreadsEventin classThreadPoolStatsProvider
-
setCoreThreadsEvent
public void setCoreThreadsEvent(String monitoringId, int coreNumberOfThreads)
- Overrides:
setCoreThreadsEventin classThreadPoolStatsProvider
-
threadDispatchedFromPoolEvent
public void threadDispatchedFromPoolEvent(String monitoringId, long threadId)
- Overrides:
threadDispatchedFromPoolEventin classThreadPoolStatsProvider
-
threadReturnedToPoolEvent
public void threadReturnedToPoolEvent(String monitoringId, long threadId)
- Overrides:
threadReturnedToPoolEventin classThreadPoolStatsProvider
-
subtractBusyThreads
public void subtractBusyThreads(long busyThreads)
-
reset
public void reset()
- Overrides:
resetin classThreadPoolStatsProvider
-
-