/** * Notify registered {@link ThreadPoolProbe}s about the "task cancelled" event. * * @param threadPool the {@link AbstractThreadPool} being monitored * @param task a unit of work to be processed */ static void notifyTaskCancelled(final AbstractThreadPool threadPool, final Runnable task) { final ThreadPoolProbe[] probes = threadPool.monitoringConfig.getProbesUnsafe(); if (probes != null) { for (ThreadPoolProbe probe : probes) { probe.onTaskCancelEvent(threadPool, task); } } }
/** * Notify registered {@link ThreadPoolProbe}s about the "task completed" event. * * @param threadPool the {@link AbstractThreadPool} being monitored * @param task a unit of work to be processed */ static void notifyTaskCompleted(final AbstractThreadPool threadPool, final Runnable task) { final ThreadPoolProbe[] probes = threadPool.monitoringConfig.getProbesUnsafe(); if (probes != null) { for (ThreadPoolProbe probe : probes) { probe.onTaskCompleteEvent(threadPool, task); } } }
/** * Notify registered {@link ThreadPoolProbe}s about the "task dequeued" event. * * @param threadPool the {@link AbstractThreadPool} being monitored * @param task a unit of work to be processed */ static void notifyTaskDequeued(final AbstractThreadPool threadPool, final Runnable task) { final ThreadPoolProbe[] probes = threadPool.monitoringConfig.getProbesUnsafe(); if (probes != null) { for (ThreadPoolProbe probe : probes) { probe.onTaskDequeueEvent(threadPool, task); } } }
/** * Notify registered {@link ThreadPoolProbe}s about the "thread pool started" event. * * @param threadPool the {@link AbstractThreadPool} being monitored */ static void notifyThreadPoolStarted(final AbstractThreadPool threadPool) { final ThreadPoolProbe[] probes = threadPool.monitoringConfig.getProbesUnsafe(); if (probes != null) { for (ThreadPoolProbe probe : probes) { probe.onThreadPoolStartEvent(threadPool); } } }
/** * Notify registered {@link ThreadPoolProbe}s about the "thread pool stopped" event. * * @param threadPool the {@link AbstractThreadPool} being monitored */ static void notifyThreadPoolStopped(final AbstractThreadPool threadPool) { final ThreadPoolProbe[] probes = threadPool.monitoringConfig.getProbesUnsafe(); if (probes != null) { for (ThreadPoolProbe probe : probes) { probe.onThreadPoolStopEvent(threadPool); } } }
/** * Notify registered {@link ThreadPoolProbe}s about the "task queue overflow" event. * * @param threadPool the {@link AbstractThreadPool} being monitored */ static void notifyTaskQueueOverflow(final AbstractThreadPool threadPool) { final ThreadPoolProbe[] probes = threadPool.monitoringConfig.getProbesUnsafe(); if (probes != null) { for (ThreadPoolProbe probe : probes) { probe.onTaskQueueOverflowEvent(threadPool); } } } }
/** * Notify registered {@link ThreadPoolProbe}s about the "thread released" event. * * @param threadPool the {@link AbstractThreadPool} being monitored * @param thread the thread that has been allocated */ static void notifyThreadReleased(final AbstractThreadPool threadPool, final Thread thread) { final ThreadPoolProbe[] probes = threadPool.monitoringConfig.getProbesUnsafe(); if (probes != null) { for (ThreadPoolProbe probe : probes) { probe.onThreadReleaseEvent(threadPool, thread); } } }
/** * Notify registered {@link ThreadPoolProbe}s about the "task queued" event. * * @param threadPool the {@link AbstractThreadPool} being monitored * @param task a unit of work to be processed */ static void notifyTaskQueued(final AbstractThreadPool threadPool, final Runnable task) { final ThreadPoolProbe[] probes = threadPool.monitoringConfig.getProbesUnsafe(); if (probes != null) { for (ThreadPoolProbe probe : probes) { probe.onTaskQueueEvent(threadPool, task); } } }
/** * Notify registered {@link ThreadPoolProbe}s about the "thread allocated" event. * * @param threadPool the {@link AbstractThreadPool} being monitored * @param thread the thread that has been allocated */ static void notifyThreadAllocated(final AbstractThreadPool threadPool, final Thread thread) { final ThreadPoolProbe[] probes = threadPool.monitoringConfig.getProbesUnsafe(); if (probes != null) { for (ThreadPoolProbe probe : probes) { probe.onThreadAllocateEvent(threadPool, thread); } } }
/** * Notify registered {@link ThreadPoolProbe}s about the "max number of threads reached" event. * * @param threadPool the {@link AbstractThreadPool} being monitored * @param maxNumberOfThreads the maximum number of threads allowed in the * {@link AbstractThreadPool} */ static void notifyMaxNumberOfThreads(final AbstractThreadPool threadPool, final int maxNumberOfThreads) { final ThreadPoolProbe[] probes = threadPool.monitoringConfig.getProbesUnsafe(); if (probes != null) { for (ThreadPoolProbe probe : probes) { probe.onMaxNumberOfThreadsEvent(threadPool, maxNumberOfThreads); } } }
/** * Notify registered {@link ThreadPoolProbe}s about the "thread pool started" event. * * @param threadPool the {@link AbstractThreadPool} being monitored */ static void notifyThreadPoolStarted(final AbstractThreadPool threadPool) { final ThreadPoolProbe[] probes = threadPool.monitoringConfig.getProbesUnsafe(); if (probes != null) { for (ThreadPoolProbe probe : probes) { probe.onThreadPoolStartEvent(threadPool); } } }
/** * Notify registered {@link ThreadPoolProbe}s about the "thread pool stopped" event. * * @param threadPool the {@link AbstractThreadPool} being monitored */ static void notifyThreadPoolStopped(final AbstractThreadPool threadPool) { final ThreadPoolProbe[] probes = threadPool.monitoringConfig.getProbesUnsafe(); if (probes != null) { for (ThreadPoolProbe probe : probes) { probe.onThreadPoolStopEvent(threadPool); } } }
/** * Notify registered {@link ThreadPoolProbe}s about the "task queue overflow" event. * * @param threadPool the {@link AbstractThreadPool} being monitored */ static void notifyTaskQueueOverflow(final AbstractThreadPool threadPool) { final ThreadPoolProbe[] probes = threadPool.monitoringConfig.getProbesUnsafe(); if (probes != null) { for (ThreadPoolProbe probe : probes) { probe.onTaskQueueOverflowEvent(threadPool); } } } }
/** * Notify registered {@link ThreadPoolProbe}s about the "thread released" event. * * @param threadPool the {@link AbstractThreadPool} being monitored * @param thread the thread that has been allocated */ static void notifyThreadReleased(final AbstractThreadPool threadPool, final Thread thread) { final ThreadPoolProbe[] probes = threadPool.monitoringConfig.getProbesUnsafe(); if (probes != null) { for (ThreadPoolProbe probe : probes) { probe.onThreadReleaseEvent(threadPool, thread); } } }
/** * Notify registered {@link ThreadPoolProbe}s about the "task queued" event. * * @param threadPool the {@link AbstractThreadPool} being monitored * @param task a unit of work to be processed */ static void notifyTaskQueued(final AbstractThreadPool threadPool, final Runnable task) { final ThreadPoolProbe[] probes = threadPool.monitoringConfig.getProbesUnsafe(); if (probes != null) { for (ThreadPoolProbe probe : probes) { probe.onTaskQueueEvent(threadPool, task); } } }
/** * Notify registered {@link ThreadPoolProbe}s about the "thread allocated" event. * * @param threadPool the {@link AbstractThreadPool} being monitored * @param thread the thread that has been allocated */ static void notifyThreadAllocated(final AbstractThreadPool threadPool, final Thread thread) { final ThreadPoolProbe[] probes = threadPool.monitoringConfig.getProbesUnsafe(); if (probes != null) { for (ThreadPoolProbe probe : probes) { probe.onThreadAllocateEvent(threadPool, thread); } } }
/** * Notify registered {@link ThreadPoolProbe}s about the "max number of threads reached" event. * * @param threadPool the {@link AbstractThreadPool} being monitored * @param maxNumberOfThreads the maximum number of threads allowed in the * {@link AbstractThreadPool} */ static void notifyMaxNumberOfThreads(final AbstractThreadPool threadPool, final int maxNumberOfThreads) { final ThreadPoolProbe[] probes = threadPool.monitoringConfig.getProbesUnsafe(); if (probes != null) { for (ThreadPoolProbe probe : probes) { probe.onMaxNumberOfThreadsEvent(threadPool, maxNumberOfThreads); } } }
/** * Notify registered {@link ThreadPoolProbe}s about the "thread pool started" event. * * @param threadPool the {@link AbstractThreadPool} being monitored */ static void notifyThreadPoolStarted(final AbstractThreadPool threadPool) { final ThreadPoolProbe[] probes = threadPool.monitoringConfig.getProbesUnsafe(); if (probes != null) { for (ThreadPoolProbe probe : probes) { probe.onThreadPoolStartEvent(threadPool); } } }
/** * Notify registered {@link ThreadPoolProbe}s about the "thread pool stopped" event. * * @param threadPool the {@link AbstractThreadPool} being monitored */ static void notifyThreadPoolStopped(final AbstractThreadPool threadPool) { final ThreadPoolProbe[] probes = threadPool.monitoringConfig.getProbesUnsafe(); if (probes != null) { for (ThreadPoolProbe probe : probes) { probe.onThreadPoolStopEvent(threadPool); } } }
/** * Notify registered {@link ThreadPoolProbe}s about the "task queue overflow" event. * * @param threadPool the {@link AbstractThreadPool} being monitored */ static void notifyTaskQueueOverflow(final AbstractThreadPool threadPool) { final ThreadPoolProbe[] probes = threadPool.monitoringConfig.getProbesUnsafe(); if (probes != null) { for (ThreadPoolProbe probe : probes) { probe.onTaskQueueOverflowEvent(threadPool); } } } }