public Pair<Long, Long> getExecutorStatus(String poolName) {
    MutableGaugeLong running = metricsRegistry.getGauge(poolName + "_running", 0L);
    MutableGaugeLong queued = metricsRegistry.getGauge(poolName + "_queued", 0L);
    return new Pair<Long, Long>(running.value(), queued.value());
  }
The Class ExecutorStatusChore for collect Executor status info periodically and report to metrics
system
hbase-server/src/main/java/org/apache/hadoop/hbase/ExecutorStatusChore.java