Top Description Constructors Methods
org.glassfish.grizzly.threadpool

pack-priv final Class ProbeNotifier

extends Object
Class Inheritance

Utility class, which has notification methods for different ThreadPoolProbe events.
Author
Alexey Stashok

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
notifyMaxNumberOfThreads(final ThreadPoolInfo
the ThreadPoolInfo being monitored
threadPool
,
final int
the maximum number of threads allowed in the ThreadPoolInfo
maxNumberOfThreads
)

Notify registered ThreadPoolProbes about the "max number of threads reached" event.

pack-priv static void
notifyTaskCancelled(final ThreadPoolInfo
the ThreadPoolInfo being monitored
threadPool
,
final Runnable
a unit of work to be processed
task
)

Notify registered ThreadPoolProbes about the "task cancelled" event.

pack-priv static void
notifyTaskCompleted(final ThreadPoolInfo
the ThreadPoolInfo being monitored
threadPool
,
final Runnable
a unit of work to be processed
task
)

Notify registered ThreadPoolProbes about the "task completed" event.

pack-priv static void
notifyTaskDequeued(final ThreadPoolInfo
the ThreadPoolInfo being monitored
threadPool
,
final Runnable
a unit of work to be processed
task
)

Notify registered ThreadPoolProbes about the "task dequeued" event.

pack-priv static void
notifyTaskQueued(final ThreadPoolInfo
the ThreadPoolInfo being monitored
threadPool
,
final Runnable
a unit of work to be processed
task
)

Notify registered ThreadPoolProbes about the "task queued" event.

pack-priv static void
notifyTaskQueueOverflow(final ThreadPoolInfo
the ThreadPoolInfo being monitored
threadPool
)

Notify registered ThreadPoolProbes about the "task queue overflow" event.

pack-priv static void
notifyThreadAllocated(final ThreadPoolInfo
the ThreadPoolInfo being monitored
threadPool
,
final Thread
the thread that has been allocated
thread
)

Notify registered ThreadPoolProbes about the "thread allocated" event.

pack-priv static void
notifyThreadPoolStarted(final ThreadPoolInfo
the ThreadPoolInfo being monitored
threadPool
)

Notify registered ThreadPoolProbes about the "thread pool started" event.

pack-priv static void
notifyThreadPoolStopped(final ThreadPoolInfo
the ThreadPoolInfo being monitored
threadPool
)

Notify registered ThreadPoolProbes about the "thread pool stopped" event.

pack-priv static void
notifyThreadReleased(final ThreadPoolInfo
the ThreadPoolInfo being monitored
threadPool
,
final Thread
the thread that has been allocated
thread
)

Notify registered ThreadPoolProbes about the "thread released" event.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ProbeNotifierback to summary
pack-priv ProbeNotifier()

Method Detail

notifyMaxNumberOfThreadsback to summary
pack-priv static void notifyMaxNumberOfThreads(final ThreadPoolInfo threadPool, final int maxNumberOfThreads)

Notify registered ThreadPoolProbes about the "max number of threads reached" event.

Parameters
threadPool:ThreadPoolInfo

the ThreadPoolInfo being monitored

maxNumberOfThreads:int

the maximum number of threads allowed in the ThreadPoolInfo

notifyTaskCancelledback to summary
pack-priv static void notifyTaskCancelled(final ThreadPoolInfo threadPool, final Runnable task)

Notify registered ThreadPoolProbes about the "task cancelled" event.

Parameters
threadPool:ThreadPoolInfo

the ThreadPoolInfo being monitored

task:Runnable

a unit of work to be processed

notifyTaskCompletedback to summary
pack-priv static void notifyTaskCompleted(final ThreadPoolInfo threadPool, final Runnable task)

Notify registered ThreadPoolProbes about the "task completed" event.

Parameters
threadPool:ThreadPoolInfo

the ThreadPoolInfo being monitored

task:Runnable

a unit of work to be processed

notifyTaskDequeuedback to summary
pack-priv static void notifyTaskDequeued(final ThreadPoolInfo threadPool, final Runnable task)

Notify registered ThreadPoolProbes about the "task dequeued" event.

Parameters
threadPool:ThreadPoolInfo

the ThreadPoolInfo being monitored

task:Runnable

a unit of work to be processed

notifyTaskQueuedback to summary
pack-priv static void notifyTaskQueued(final ThreadPoolInfo threadPool, final Runnable task)

Notify registered ThreadPoolProbes about the "task queued" event.

Parameters
threadPool:ThreadPoolInfo

the ThreadPoolInfo being monitored

task:Runnable

a unit of work to be processed

notifyTaskQueueOverflowback to summary
pack-priv static void notifyTaskQueueOverflow(final ThreadPoolInfo threadPool)

Notify registered ThreadPoolProbes about the "task queue overflow" event.

Parameters
threadPool:ThreadPoolInfo

the ThreadPoolInfo being monitored

notifyThreadAllocatedback to summary
pack-priv static void notifyThreadAllocated(final ThreadPoolInfo threadPool, final Thread thread)

Notify registered ThreadPoolProbes about the "thread allocated" event.

Parameters
threadPool:ThreadPoolInfo

the ThreadPoolInfo being monitored

thread:Thread

the thread that has been allocated

notifyThreadPoolStartedback to summary
pack-priv static void notifyThreadPoolStarted(final ThreadPoolInfo threadPool)

Notify registered ThreadPoolProbes about the "thread pool started" event.

Parameters
threadPool:ThreadPoolInfo

the ThreadPoolInfo being monitored

notifyThreadPoolStoppedback to summary
pack-priv static void notifyThreadPoolStopped(final ThreadPoolInfo threadPool)

Notify registered ThreadPoolProbes about the "thread pool stopped" event.

Parameters
threadPool:ThreadPoolInfo

the ThreadPoolInfo being monitored

notifyThreadReleasedback to summary
pack-priv static void notifyThreadReleased(final ThreadPoolInfo threadPool, final Thread thread)

Notify registered ThreadPoolProbes about the "thread released" event.

Parameters
threadPool:ThreadPoolInfo

the ThreadPoolInfo being monitored

thread:Thread

the thread that has been allocated