|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.threadpool.ThreadPoolProbe.Adapter
public static class ThreadPoolProbe.Adapter
ThreadPoolProbe adapter that provides no-op implementations for
all interface methods allowing easy extension by the developer.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.glassfish.grizzly.threadpool.ThreadPoolProbe |
|---|
ThreadPoolProbe.Adapter |
| Constructor Summary | |
|---|---|
ThreadPoolProbe.Adapter()
|
|
| Method Summary | |
|---|---|
void |
onMaxNumberOfThreadsEvent(AbstractThreadPool threadPool,
int maxNumberOfThreads)
This event may be fired when the AbstractThreadPool implementation
has allocated and is managing a number of threads equal to the maximum limit
of the pool. |
void |
onTaskCompleteEvent(AbstractThreadPool threadPool,
java.lang.Runnable task)
This event may be fired when a dequeued task has completed processing. |
void |
onTaskDequeueEvent(AbstractThreadPool threadPool,
java.lang.Runnable task)
This event may be fired when a task has been pulled from the queue and is about to be processed. |
void |
onTaskQueueEvent(AbstractThreadPool threadPool,
java.lang.Runnable task)
This event may be fired when a task has been queued for processing. |
void |
onTaskQueueOverflowEvent(AbstractThreadPool threadPool)
This event may be fired when the task queue of the AbstractThreadPool
implementation has exceeded its configured size. |
void |
onThreadAllocateEvent(AbstractThreadPool threadPool,
java.lang.Thread thread)
This event may be fired when an AbstractThreadPool implementation
allocates a new managed Thread. |
void |
onThreadPoolStartEvent(AbstractThreadPool threadPool)
This event may be fired when an AbstractThreadPool implementation
starts running. |
void |
onThreadPoolStopEvent(AbstractThreadPool threadPool)
This event may be fired when an AbstractThreadPool implementation
stops. |
void |
onThreadReleaseEvent(AbstractThreadPool threadPool,
java.lang.Thread thread)
This event may be fired when a thread will no longer be managed by the AbstractThreadPool implementation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadPoolProbe.Adapter()
| Method Detail |
|---|
public void onThreadPoolStartEvent(AbstractThreadPool threadPool)
This event may be fired when an AbstractThreadPool implementation
starts running.
onThreadPoolStartEvent in interface ThreadPoolProbethreadPool - the AbstractThreadPool being monitoredpublic void onThreadPoolStopEvent(AbstractThreadPool threadPool)
This event may be fired when an AbstractThreadPool implementation
stops.
onThreadPoolStopEvent in interface ThreadPoolProbethreadPool - the AbstractThreadPool being monitored
public void onThreadAllocateEvent(AbstractThreadPool threadPool,
java.lang.Thread thread)
This event may be fired when an AbstractThreadPool implementation
allocates a new managed Thread.
onThreadAllocateEvent in interface ThreadPoolProbethreadPool - the AbstractThreadPool being monitoredthread - the thread that has been allocated
public void onThreadReleaseEvent(AbstractThreadPool threadPool,
java.lang.Thread thread)
This event may be fired when a thread will no longer be managed by the
AbstractThreadPool implementation.
onThreadReleaseEvent in interface ThreadPoolProbethreadPool - the AbstractThreadPool being monitoredthread - the thread that is no longer being managed by the
AbstractThreadPool
public void onMaxNumberOfThreadsEvent(AbstractThreadPool threadPool,
int maxNumberOfThreads)
This event may be fired when the AbstractThreadPool implementation
has allocated and is managing a number of threads equal to the maximum limit
of the pool.
onMaxNumberOfThreadsEvent in interface ThreadPoolProbethreadPool - the AbstractThreadPool being monitoredmaxNumberOfThreads - the maximum number of threads allowed in the
AbstractThreadPool
public void onTaskQueueEvent(AbstractThreadPool threadPool,
java.lang.Runnable task)
This event may be fired when a task has been queued for processing.
onTaskQueueEvent in interface ThreadPoolProbethreadPool - the AbstractThreadPool being monitoredtask - a unit of work to be processed
public void onTaskDequeueEvent(AbstractThreadPool threadPool,
java.lang.Runnable task)
This event may be fired when a task has been pulled from the queue and is about to be processed.
onTaskDequeueEvent in interface ThreadPoolProbethreadPool - the AbstractThreadPool being monitoredtask - a unit of work that is about to be processed.
public void onTaskCompleteEvent(AbstractThreadPool threadPool,
java.lang.Runnable task)
This event may be fired when a dequeued task has completed processing.
onTaskCompleteEvent in interface ThreadPoolProbethreadPool - the AbstractThreadPool being monitoredtask - the unit of work that has completed processingpublic void onTaskQueueOverflowEvent(AbstractThreadPool threadPool)
This event may be fired when the task queue of the AbstractThreadPool
implementation has exceeded its configured size.
onTaskQueueOverflowEvent in interface ThreadPoolProbethreadPool - the AbstractThreadPool being monitored
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||