Codota Logo
JMXEnabledThreadPoolExecutorMBean.getCurrentlyBlockedTasks
Code IndexAdd Codota to your IDE (free)

How to use
getCurrentlyBlockedTasks
method
in
org.apache.cassandra.concurrent.JMXEnabledThreadPoolExecutorMBean

Best Java code snippets using org.apache.cassandra.concurrent.JMXEnabledThreadPoolExecutorMBean.getCurrentlyBlockedTasks (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: Netflix/Priam

tpObj.put("pending", threadPoolProxy.getPendingTasks());
tpObj.put("completed", threadPoolProxy.getCompletedTasks());
tpObj.put("blocked", threadPoolProxy.getCurrentlyBlockedTasks());
tpObj.put("total blocked", threadPoolProxy.getTotalBlockedTasks());
threadPoolArray.put(tpObj);
origin: com.facebook.presto.cassandra/cassandra-server

  @Override
  public void execute(NodeProbe probe)
  {
    System.out.printf("%-25s%10s%10s%15s%10s%18s%n", "Pool Name", "Active", "Pending", "Completed", "Blocked", "All time blocked");
    Iterator<Map.Entry<String, JMXEnabledThreadPoolExecutorMBean>> threads = probe.getThreadPoolMBeanProxies();
    while (threads.hasNext())
    {
      Map.Entry<String, JMXEnabledThreadPoolExecutorMBean> thread = threads.next();
      String poolName = thread.getKey();
      JMXEnabledThreadPoolExecutorMBean threadPoolProxy = thread.getValue();
      System.out.printf("%-25s%10s%10s%15s%10s%18s%n",
          poolName,
          threadPoolProxy.getActiveCount(),
          threadPoolProxy.getPendingTasks(),
          threadPoolProxy.getCompletedTasks(),
          threadPoolProxy.getCurrentlyBlockedTasks(),
          threadPoolProxy.getTotalBlockedTasks());
    }
    System.out.printf("%n%-20s%10s%n", "Message type", "Dropped");
    for (Map.Entry<String, Integer> entry : probe.getDroppedMessages().entrySet())
      System.out.printf("%-20s%10s%n", entry.getKey(), entry.getValue());
  }
}
origin: io.smartcat/cassandra-diagnostics-connector21

/**
 * Get the status of all thread pools.
 *
 * @return thread pools info list
 */
public List<TPStatsInfo> getTPStats() {
  List<TPStatsInfo> tpstats = new ArrayList<>();
  Iterator<Map.Entry<String, JMXEnabledThreadPoolExecutorMBean>> threads = nodeProbe.getThreadPoolMBeanProxies();
  while (threads.hasNext()) {
    Map.Entry<String, JMXEnabledThreadPoolExecutorMBean> thread = threads.next();
    JMXEnabledThreadPoolExecutorMBean threadPoolProxy = thread.getValue();
    tpstats.add(new TPStatsInfo(thread.getKey(), threadPoolProxy.getActiveCount(),
        threadPoolProxy.getPendingTasks(), threadPoolProxy.getCompletedTasks(),
        threadPoolProxy.getCurrentlyBlockedTasks(), threadPoolProxy.getTotalBlockedTasks()));
  }
  return tpstats;
}
origin: smartcat-labs/cassandra-diagnostics

/**
 * Get the status of all thread pools.
 *
 * @return thread pools info list
 */
public List<TPStatsInfo> getTPStats() {
  List<TPStatsInfo> tpstats = new ArrayList<>();
  Iterator<Map.Entry<String, JMXEnabledThreadPoolExecutorMBean>> threads = nodeProbe.getThreadPoolMBeanProxies();
  while (threads.hasNext()) {
    Map.Entry<String, JMXEnabledThreadPoolExecutorMBean> thread = threads.next();
    JMXEnabledThreadPoolExecutorMBean threadPoolProxy = thread.getValue();
    tpstats.add(new TPStatsInfo(thread.getKey(), threadPoolProxy.getActiveCount(),
        threadPoolProxy.getPendingTasks(), threadPoolProxy.getCompletedTasks(),
        threadPoolProxy.getCurrentlyBlockedTasks(), threadPoolProxy.getTotalBlockedTasks()));
  }
  return tpstats;
}
origin: com.facebook.presto.cassandra/cassandra-server

threadPoolProxy.getPendingTasks(),
threadPoolProxy.getCompletedTasks(),
threadPoolProxy.getCurrentlyBlockedTasks(),
threadPoolProxy.getTotalBlockedTasks()));
org.apache.cassandra.concurrentJMXEnabledThreadPoolExecutorMBeangetCurrentlyBlockedTasks

Javadoc

Get the number of tasks currently blocked, waiting to be accepted by the executor (because all threads are busy and the backing queue is full).

Popular methods of JMXEnabledThreadPoolExecutorMBean

  • getActiveCount
  • getCompletedTasks
  • getPendingTasks
  • getTotalBlockedTasks
    Get the number of tasks that had blocked before being accepted (or rejected).

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSharedPreferences (Context)
  • runOnUiThread (Activity)
  • getApplicationContext (Context)
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Table (org.hibernate.mapping)
    A relational table
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now