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 ThreadPoolStatsProvider
Server 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.CountStatistic
getCurrentThreadCount()
void
reset()
void
setCoreThreadsEvent(String monitoringId, int coreNumberOfThreads)
void
setMaxThreadsEvent(String monitoringId, int maxNumberOfThreads)
void
subtractBusyThreads(long busyThreads)
void
threadDispatchedFromPoolEvent(String monitoringId, long threadId)
void
threadReturnedToPoolEvent(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:
getCurrentThreadCount
in classThreadPoolStatsProvider
-
setMaxThreadsEvent
public void setMaxThreadsEvent(String monitoringId, int maxNumberOfThreads)
- Overrides:
setMaxThreadsEvent
in classThreadPoolStatsProvider
-
setCoreThreadsEvent
public void setCoreThreadsEvent(String monitoringId, int coreNumberOfThreads)
- Overrides:
setCoreThreadsEvent
in classThreadPoolStatsProvider
-
threadDispatchedFromPoolEvent
public void threadDispatchedFromPoolEvent(String monitoringId, long threadId)
- Overrides:
threadDispatchedFromPoolEvent
in classThreadPoolStatsProvider
-
threadReturnedToPoolEvent
public void threadReturnedToPoolEvent(String monitoringId, long threadId)
- Overrides:
threadReturnedToPoolEvent
in classThreadPoolStatsProvider
-
subtractBusyThreads
public void subtractBusyThreads(long busyThreads)
-
reset
public void reset()
- Overrides:
reset
in classThreadPoolStatsProvider
-
-