Class ThreadPoolMonitor

  • All Implemented Interfaces:
    org.glassfish.grizzly.threadpool.ThreadPoolProbe

    public class ThreadPoolMonitor
    extends Object
    implements org.glassfish.grizzly.threadpool.ThreadPoolProbe
    Author:
    oleksiys
    • 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 interface org.glassfish.grizzly.threadpool.ThreadPoolProbe
      • onThreadPoolStopEvent

        public void onThreadPoolStopEvent​(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool)
        Specified by:
        onThreadPoolStopEvent in interface org.glassfish.grizzly.threadpool.ThreadPoolProbe
      • onThreadAllocateEvent

        public void onThreadAllocateEvent​(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool,
                                          Thread thread)
        Specified by:
        onThreadAllocateEvent in interface org.glassfish.grizzly.threadpool.ThreadPoolProbe
      • onThreadReleaseEvent

        public void onThreadReleaseEvent​(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool,
                                         Thread thread)
        Specified by:
        onThreadReleaseEvent in interface org.glassfish.grizzly.threadpool.ThreadPoolProbe
      • onMaxNumberOfThreadsEvent

        public void onMaxNumberOfThreadsEvent​(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool,
                                              int maxNumberOfThreads)
        Specified by:
        onMaxNumberOfThreadsEvent in interface org.glassfish.grizzly.threadpool.ThreadPoolProbe
      • onTaskDequeueEvent

        public void onTaskDequeueEvent​(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool,
                                       Runnable task)
        Specified by:
        onTaskDequeueEvent in interface org.glassfish.grizzly.threadpool.ThreadPoolProbe
      • onTaskCancelEvent

        public void onTaskCancelEvent​(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool,
                                      Runnable task)
        Specified by:
        onTaskCancelEvent in interface org.glassfish.grizzly.threadpool.ThreadPoolProbe
      • onTaskCompleteEvent

        public void onTaskCompleteEvent​(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool,
                                        Runnable task)
        Specified by:
        onTaskCompleteEvent in interface org.glassfish.grizzly.threadpool.ThreadPoolProbe
      • onTaskQueueEvent

        public void onTaskQueueEvent​(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool,
                                     Runnable task)
        Specified by:
        onTaskQueueEvent in interface org.glassfish.grizzly.threadpool.ThreadPoolProbe
      • onTaskQueueOverflowEvent

        public void onTaskQueueOverflowEvent​(org.glassfish.grizzly.threadpool.AbstractThreadPool threadPool)
        Specified by:
        onTaskQueueOverflowEvent in interface org.glassfish.grizzly.threadpool.ThreadPoolProbe