Examples of IExecutorMBean


Examples of org.apache.cassandra.concurrent.IExecutorMBean

            query = new ObjectName("org.apache.cassandra.concurrent:type=*");
            Set<ObjectName> result = mbeanServerConn.queryNames(query, null);
            for (ObjectName objectName : result)
            {
                String poolName = objectName.getKeyProperty("type");
                IExecutorMBean threadPoolProxy = JMX.newMBeanProxy(mbeanServerConn, objectName, IExecutorMBean.class);
                outs.print(String.format("%-25s", poolName));
                outs.print(String.format("%10d", threadPoolProxy.getActiveCount()));
                outs.print(String.format("%10d", threadPoolProxy.getPendingTasks()));
                outs.print(String.format("%15d", threadPoolProxy.getCompletedTasks()));
                outs.println();
            }
        }
        catch (MalformedObjectNameException e)
        {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.