Examples of IExecutorMBean


Examples of org.apache.cassandra.concurrent.IExecutorMBean

        logger.info(String.format("%-25s%10s%10s", "Pool Name", "Active", "Pending"));
        while(tpiter.hasNext())
        {
            ObjectName objectName = tpiter.next();
            String poolName = objectName.getKeyProperty("type");
            IExecutorMBean threadPoolProxy = JMX.newMBeanProxy(server, objectName, IExecutorMBean.class);
            logger.info(String.format("%-25s%10d%10d", poolName, threadPoolProxy.getActiveCount(), threadPoolProxy.getPendingTasks()));
        }
        // one off for compaction
        ObjectName cm = new ObjectName("org.apache.cassandra.db:type=CompactionManager");
        CompactionManagerMBean cmProxy = JMX.newMBeanProxy(server, cm, CompactionManagerMBean.class);
        logger.info(String.format("%-25s%10s%10s", "CompactionManager", "n/a", cmProxy.getPendingTasks()));
View Full Code Here

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

Examples of org.apache.cassandra.concurrent.IExecutorMBean

            throw new RuntimeException(e);
        }
        for (ObjectName objectName : Iterables.concat(request, internal))
        {
            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()));
        int pendingCommands = 0;
View Full Code Here

Examples of org.apache.cassandra.concurrent.IExecutorMBean

    public Map.Entry<String, IExecutorMBean> next()
    {
        ObjectName objectName = resIter.next();
        String poolName = objectName.getKeyProperty("type");
        IExecutorMBean threadPoolProxy = JMX.newMBeanProxy(mbeanServerConn, objectName, IExecutorMBean.class);
        return new AbstractMap.SimpleImmutableEntry<String, IExecutorMBean>(poolName, threadPoolProxy);
    }
View Full Code Here

Examples of org.apache.cassandra.concurrent.IExecutorMBean

        Iterator<Map.Entry<String, IExecutorMBean>> threads = probe.getThreadPoolMBeanProxies();
        while (threads.hasNext())
        {
            Entry<String, IExecutorMBean> thread = threads.next();
            String poolName = thread.getKey();
            IExecutorMBean threadPoolProxy = thread.getValue();
            outs.printf("%-25s%10s%10s%15s%n",
                        poolName, threadPoolProxy.getActiveCount(), threadPoolProxy.getPendingTasks(), threadPoolProxy.getCompletedTasks());
        }
    }
View Full Code Here

Examples of org.apache.cassandra.concurrent.IExecutorMBean

       
        for (; threads.hasNext();)
        {
            Map.Entry<String, IExecutorMBean> thread = threads.next();
            String poolName = thread.getKey();
            IExecutorMBean threadPoolProxy = thread.getValue();
            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();
        }
    }
View Full Code Here

Examples of org.apache.cassandra.concurrent.IExecutorMBean

    public Map.Entry<String, IExecutorMBean> next()
    {
        ObjectName objectName = resIter.next();
        String poolName = objectName.getKeyProperty("type");
        IExecutorMBean threadPoolProxy = JMX.newMBeanProxy(mbeanServerConn, objectName, IExecutorMBean.class);
        return new AbstractMap.SimpleImmutableEntry<String, IExecutorMBean>(poolName, threadPoolProxy);
    }
View Full Code Here

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

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

Examples of org.apache.cassandra.concurrent.IExecutorMBean

        logger.info(String.format("%-25s%10s%10s", "Pool Name", "Active", "Pending"));
        while(tpiter.hasNext())
        {
            ObjectName objectName = tpiter.next();
            String poolName = objectName.getKeyProperty("type");
            IExecutorMBean threadPoolProxy = JMX.newMBeanProxy(server, objectName, IExecutorMBean.class);
            logger.info(String.format("%-25s%10d%10d", poolName, threadPoolProxy.getActiveCount(), threadPoolProxy.getPendingTasks()));
        }
        // one off for compaction
        ObjectName cm = new ObjectName("org.apache.cassandra.db:type=CompactionManager");
        CompactionManagerMBean cmProxy = JMX.newMBeanProxy(server, cm, CompactionManagerMBean.class);
        logger.info(String.format("%-25s%10s%10s", "CompactionManager", "n/a", cmProxy.getPendingTasks()));
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.