Class ThreadPoolMonitor
- java.lang.Object
-
- com.sun.enterprise.v3.services.impl.monitor.ThreadPoolMonitor
-
- All Implemented Interfaces:
org.glassfish.grizzly.threadpool.ThreadPoolProbe
public class ThreadPoolMonitor extends Object implements org.glassfish.grizzly.threadpool.ThreadPoolProbe
- Author:
- oleksiys
-
-
Constructor Summary
Constructors Constructor Description ThreadPoolMonitor(GrizzlyMonitoring grizzlyMonitoring, String monitoringId, org.glassfish.grizzly.threadpool.ThreadPoolConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonMaxNumberOfThreadsEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool, int maxNumberOfThreads)voidonTaskCancelEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool, Runnable task)voidonTaskCompleteEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool, Runnable task)voidonTaskDequeueEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool, Runnable task)voidonTaskQueueEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool, Runnable task)voidonTaskQueueOverflowEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool)voidonThreadAllocateEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool, Thread thread)voidonThreadPoolStartEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool)voidonThreadPoolStopEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool)voidonThreadReleaseEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool, Thread thread)
-
-
-
Constructor Detail
-
ThreadPoolMonitor
public ThreadPoolMonitor(GrizzlyMonitoring grizzlyMonitoring, String monitoringId, org.glassfish.grizzly.threadpool.ThreadPoolConfig config)
-
-
Method Detail
-
onThreadPoolStartEvent
public void onThreadPoolStartEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool)
- Specified by:
onThreadPoolStartEventin interfaceorg.glassfish.grizzly.threadpool.ThreadPoolProbe
-
onThreadPoolStopEvent
public void onThreadPoolStopEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool)
- Specified by:
onThreadPoolStopEventin interfaceorg.glassfish.grizzly.threadpool.ThreadPoolProbe
-
onThreadAllocateEvent
public void onThreadAllocateEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool, Thread thread)- Specified by:
onThreadAllocateEventin interfaceorg.glassfish.grizzly.threadpool.ThreadPoolProbe
-
onThreadReleaseEvent
public void onThreadReleaseEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool, Thread thread)- Specified by:
onThreadReleaseEventin interfaceorg.glassfish.grizzly.threadpool.ThreadPoolProbe
-
onMaxNumberOfThreadsEvent
public void onMaxNumberOfThreadsEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool, int maxNumberOfThreads)- Specified by:
onMaxNumberOfThreadsEventin interfaceorg.glassfish.grizzly.threadpool.ThreadPoolProbe
-
onTaskDequeueEvent
public void onTaskDequeueEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool, Runnable task)- Specified by:
onTaskDequeueEventin interfaceorg.glassfish.grizzly.threadpool.ThreadPoolProbe
-
onTaskCancelEvent
public void onTaskCancelEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool, Runnable task)- Specified by:
onTaskCancelEventin interfaceorg.glassfish.grizzly.threadpool.ThreadPoolProbe
-
onTaskCompleteEvent
public void onTaskCompleteEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool, Runnable task)- Specified by:
onTaskCompleteEventin interfaceorg.glassfish.grizzly.threadpool.ThreadPoolProbe
-
onTaskQueueEvent
public void onTaskQueueEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool, Runnable task)- Specified by:
onTaskQueueEventin interfaceorg.glassfish.grizzly.threadpool.ThreadPoolProbe
-
onTaskQueueOverflowEvent
public void onTaskQueueOverflowEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool)
- Specified by:
onTaskQueueOverflowEventin interfaceorg.glassfish.grizzly.threadpool.ThreadPoolProbe
-
-