// everything from o.a.c.concurrent
logger.info(String.format("%-25s%10s%10s", "Pool Name", "Active", "Pending"));
for (ObjectName objectName : server.queryNames(new ObjectName("org.apache.cassandra.concurrent:type=*"), null))
{
String poolName = objectName.getKeyProperty("type");
IExecutorMBean threadPoolProxy = JMX.newMBeanProxy(server, objectName, IExecutorMBean.class);
logger.info(String.format("%-25s%10s%10s",
poolName, threadPoolProxy.getActiveCount(), threadPoolProxy.getPendingTasks()));
}
// one offs
logger.info(String.format("%-25s%10s%10s",
"CompactionManager", "n/a", CompactionManager.instance.getPendingTasks()));