Package org.apache.cassandra.concurrent

Examples of org.apache.cassandra.concurrent.DebuggableThreadPoolExecutorMBean


            query = new ObjectName("org.apache.cassandra.concurrent:type=*");
            Set<ObjectName> result = mbeanServerConn.queryNames(query, null);
            for (ObjectName objectName : result)
            {
                String poolName = objectName.getKeyProperty("type");
                DebuggableThreadPoolExecutorMBean threadPoolProxy = JMX.newMBeanProxy(mbeanServerConn,
                                                                                      objectName,
                                                                                      DebuggableThreadPoolExecutorMBean.class);
                outs.println(poolName + ", pending tasks=" + threadPoolProxy.getPendingTasks());
            }
        }
        catch (MalformedObjectNameException e)
        {
            throw new RuntimeException("Invalid ObjectName? Please report this as a bug.", e);
View Full Code Here

TOP

Related Classes of org.apache.cassandra.concurrent.DebuggableThreadPoolExecutorMBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.