Tabnine Logo
ThreadPoolProbe
Code IndexAdd Tabnine to your IDE (free)

How to use
ThreadPoolProbe
in
org.glassfish.grizzly.threadpool

Best Java code snippets using org.glassfish.grizzly.threadpool.ThreadPoolProbe (Showing top 20 results out of 315)

origin: org.glassfish.grizzly/grizzly-websockets-server

/**
 * 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);
    }
  }
}

origin: org.glassfish.grizzly/grizzly-core

/**
 * 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);
    }
  }
}
origin: javaee/grizzly

/**
 * 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);
    }
  }
}
origin: javaee/grizzly

/**
 * 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);
    }
  }
}
origin: javaee/grizzly

/**
 * 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);
    }
  }
}
origin: javaee/grizzly

  /**
   * 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);
      }
    }
  }
}
origin: javaee/grizzly

/**
 * 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);
    }
  }
}
origin: org.glassfish.grizzly/grizzly-websockets-server

/**
 * 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);
    }
  }
}
origin: org.glassfish.grizzly/grizzly-websockets-server

/**
 * 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);
    }
  }
}
origin: javaee/grizzly

/**
 * 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);
    }
  }
}
origin: javaee/grizzly

/**
 * 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);
    }
  }
}
origin: javaee/grizzly

/**
 * 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);
    }
  }
}
origin: org.glassfish.grizzly/grizzly-http-server-core

  /**
   * 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);
      }
    }
  }
}
origin: javaee/grizzly

/**
 * 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);
    }
  }
}
origin: org.glassfish.grizzly/grizzly-core

/**
 * 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);
    }
  }
}
origin: javaee/grizzly

/**
 * 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);
    }
  }
}
origin: javaee/grizzly

/**
 * 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);
    }
  }
}
origin: javaee/grizzly

/**
 * 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);
    }
  }
}
origin: javaee/grizzly

/**
 * 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);
    }
  }
}
origin: javaee/grizzly

  /**
   * 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);
      }
    }
  }
}
org.glassfish.grizzly.threadpoolThreadPoolProbe

Javadoc

Monitoring probe providing callbacks that may be invoked by Grizzly AbstractThreadPool implementations.

Most used methods

  • onMaxNumberOfThreadsEvent
    This event may be fired when the AbstractThreadPool implementation has allocated and is managing a
  • onTaskCancelEvent
    This event may be fired when a dequeued task has been canceled. This event can occur during shutdo
  • onTaskCompleteEvent
    This event may be fired when a dequeued task has completed processing.
  • onTaskDequeueEvent
    This event may be fired when a task has been pulled from the queue and is about to be processed.
  • onTaskQueueEvent
    This event may be fired when a task has been queued for processing.
  • onTaskQueueOverflowEvent
    This event may be fired when the task queue of the AbstractThreadPoolimplementation has exceeded it
  • onThreadAllocateEvent
    This event may be fired when an AbstractThreadPool implementation allocates a new managed Thread.
  • onThreadPoolStartEvent
    This event may be fired when an AbstractThreadPool implementation starts running.
  • onThreadPoolStopEvent
    This event may be fired when an AbstractThreadPool implementation stops.
  • onThreadReleaseEvent
    This event may be fired when a thread will no longer be managed by the AbstractThreadPool implement

Popular in Java

  • Reading from database using SQL prepared statement
  • getContentResolver (Context)
  • setScale (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now