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 void
onMaxNumberOfThreadsEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool, int maxNumberOfThreads)
void
onTaskCancelEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool, Runnable task)
void
onTaskCompleteEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool, Runnable task)
void
onTaskDequeueEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool, Runnable task)
void
onTaskQueueEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool, Runnable task)
void
onTaskQueueOverflowEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool)
void
onThreadAllocateEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool, Thread thread)
void
onThreadPoolStartEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool)
void
onThreadPoolStopEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool)
void
onThreadReleaseEvent(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:
onThreadPoolStartEvent
in interfaceorg.glassfish.grizzly.threadpool.ThreadPoolProbe
-
onThreadPoolStopEvent
public void onThreadPoolStopEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool)
- Specified by:
onThreadPoolStopEvent
in interfaceorg.glassfish.grizzly.threadpool.ThreadPoolProbe
-
onThreadAllocateEvent
public void onThreadAllocateEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool, Thread thread)
- Specified by:
onThreadAllocateEvent
in interfaceorg.glassfish.grizzly.threadpool.ThreadPoolProbe
-
onThreadReleaseEvent
public void onThreadReleaseEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool, Thread thread)
- Specified by:
onThreadReleaseEvent
in interfaceorg.glassfish.grizzly.threadpool.ThreadPoolProbe
-
onMaxNumberOfThreadsEvent
public void onMaxNumberOfThreadsEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool, int maxNumberOfThreads)
- Specified by:
onMaxNumberOfThreadsEvent
in interfaceorg.glassfish.grizzly.threadpool.ThreadPoolProbe
-
onTaskDequeueEvent
public void onTaskDequeueEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool, Runnable task)
- Specified by:
onTaskDequeueEvent
in interfaceorg.glassfish.grizzly.threadpool.ThreadPoolProbe
-
onTaskCancelEvent
public void onTaskCancelEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool, Runnable task)
- Specified by:
onTaskCancelEvent
in interfaceorg.glassfish.grizzly.threadpool.ThreadPoolProbe
-
onTaskCompleteEvent
public void onTaskCompleteEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool, Runnable task)
- Specified by:
onTaskCompleteEvent
in interfaceorg.glassfish.grizzly.threadpool.ThreadPoolProbe
-
onTaskQueueEvent
public void onTaskQueueEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool, Runnable task)
- Specified by:
onTaskQueueEvent
in interfaceorg.glassfish.grizzly.threadpool.ThreadPoolProbe
-
onTaskQueueOverflowEvent
public void onTaskQueueOverflowEvent(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool)
- Specified by:
onTaskQueueOverflowEvent
in interfaceorg.glassfish.grizzly.threadpool.ThreadPoolProbe
-
-