Examples of ThreadPoolStats


Examples of com.sun.enterprise.admin.monitor.stats.ThreadPoolStats

        while( threadPoolsIterator.hasNext() ) {
            MonitoredObject threadPool = (MonitoredObject) threadPoolsIterator.next();

            try {
                ThreadPoolStats threadPoolStats =
                    new ThreadPoolStatsImpl( threadPool );

                registry.registerThreadPoolStats( threadPoolStats,
        threadPoolRoot.getName() +
                    "." + MonitoringConstants.THREADPOOL_MONITORING_ROOT +
View Full Code Here

Examples of org.apache.geronimo.management.geronimo.stats.ThreadPoolStats

    }

    public void renderView(RenderRequest request, RenderResponse response, MultiPageModel model) throws PortletException, IOException {
        AbstractName name = new AbstractName(URI.create(request.getParameter(ABSTRACT_NAME_PARAMETER)));
        StatisticsProvider pool = (StatisticsProvider) PortletManager.getManagedBean(request, name);
        ThreadPoolStats stats = (ThreadPoolStats) pool.getStats();
        String[] consumers = stats.getThreadConsumers();
        ClientStats[] result = new ClientStats[consumers.length];
        for (int i = 0; i < result.length; i++) {
            result[i] = new ClientStats(consumers[i], (int)stats.getCountForConsumer(consumers[i]).getCount());
        }
        request.setAttribute("poolName", name.getName().get(NameFactory.J2EE_NAME));
        request.setAttribute("stats", stats);
        request.setAttribute("consumers", result);
    }
View Full Code Here

Examples of org.apache.geronimo.management.geronimo.stats.ThreadPoolStats

    }

    public void renderView(RenderRequest request, RenderResponse response, MultiPageModel model) throws PortletException, IOException {
        AbstractName name = new AbstractName(URI.create(request.getParameter(ABSTRACT_NAME_PARAMETER)));
        StatisticsProvider pool = (StatisticsProvider) PortletManager.getManagedBean(request, name);
        ThreadPoolStats stats = (ThreadPoolStats) pool.getStats();
        String[] consumers = stats.getThreadConsumers();
        ClientStats[] result = new ClientStats[consumers.length];
        for (int i = 0; i < result.length; i++) {
            result[i] = new ClientStats(consumers[i], (int)stats.getCountForConsumer(consumers[i]).getCount());
        }
        request.setAttribute("poolName", name.getName().get(NameFactory.J2EE_NAME));
        request.setAttribute("stats", stats);
        request.setAttribute("consumers", result);
    }
View Full Code Here

Examples of org.apache.geronimo.management.geronimo.stats.ThreadPoolStats

    }

    public void renderView(RenderRequest request, RenderResponse response, MultiPageModel model) throws PortletException, IOException {
        AbstractName name = new AbstractName(URI.create(request.getParameter(ABSTRACT_NAME_PARAMETER)));
        StatisticsProvider pool = (StatisticsProvider) PortletManager.getManagedBean(request, name);
        ThreadPoolStats stats = (ThreadPoolStats) pool.getStats();
        String[] consumers = stats.getThreadConsumers();
        ClientStats[] result = new ClientStats[consumers.length];
        for (int i = 0; i < result.length; i++) {
            result[i] = new ClientStats(consumers[i], (int)stats.getCountForConsumer(consumers[i]).getCount());
        }
        request.setAttribute("poolName", name.getName().get(NameFactory.J2EE_NAME));
        request.setAttribute("stats", stats);
        request.setAttribute("consumers", result);
    }
View Full Code Here

Examples of org.apache.geronimo.management.geronimo.stats.ThreadPoolStats

    }

    public void renderView(RenderRequest request, RenderResponse response, MultiPageModel model) throws PortletException, IOException {
        AbstractName name = new AbstractName(URI.create(request.getParameter(ABSTRACT_NAME_PARAMETER)));
        StatisticsProvider pool = (StatisticsProvider) PortletManager.getManagedBean(request, name);
        ThreadPoolStats stats = (ThreadPoolStats) pool.getStats();
        String[] consumers = stats.getThreadConsumers();
        ClientStats[] result = new ClientStats[consumers.length];
        for (int i = 0; i < result.length; i++) {
            result[i] = new ClientStats(consumers[i], (int)stats.getCountForConsumer(consumers[i]).getCount());
        }
        request.setAttribute("poolName", name.getName().get(NameFactory.J2EE_NAME));
        request.setAttribute("stats", stats);
        request.setAttribute("consumers", result);
    }
View Full Code Here

Examples of org.apache.geronimo.management.geronimo.stats.ThreadPoolStats

    }

    public void renderView(RenderRequest request, RenderResponse response, MultiPageModel model) throws PortletException, IOException {
        AbstractName name = new AbstractName(URI.create(request.getParameter(ABSTRACT_NAME_PARAMETER)));
        StatisticsProvider pool = (StatisticsProvider) PortletManager.getManagedBean(request, name);
        ThreadPoolStats stats = (ThreadPoolStats) pool.getStats();
        String[] consumers = stats.getThreadConsumers();
        ClientStats[] result = new ClientStats[consumers.length];
        for (int i = 0; i < result.length; i++) {
            result[i] = new ClientStats(consumers[i], (int)stats.getCountForConsumer(consumers[i]).getCount());
        }
        request.setAttribute("poolName", name.getName().get(NameFactory.J2EE_NAME));
        request.setAttribute("stats", stats);
        request.setAttribute("consumers", result);
    }
View Full Code Here

Examples of org.elasticsearch.threadpool.ThreadPoolStats

                poolThreadInfo = Collections.emptyMap();
            } else {
                poolThreadStats = new HashMap<>(14);
                poolThreadInfo = new HashMap<>(14);

                ThreadPoolStats threadPoolStats = stats.getThreadPool();
                for (ThreadPoolStats.Stats threadPoolStat : threadPoolStats) {
                    poolThreadStats.put(threadPoolStat.getName(), threadPoolStat);
                }
                if (info != null) {
                    for (ThreadPool.Info threadPoolInfo : info.getThreadPool()) {
View Full Code Here

Examples of org.glassfish.enterprise.iiop.util.ThreadPoolStats

           
            ThreadPoolManager tpool =  orb.getThreadPoolManager();
            // ORB creates its own threadpool if threadpoolMgr was null above
            ThreadPool thpool=tpool.getDefaultThreadPool();
            String ThreadPoolName = thpool.getName();
            ThreadPoolStats tpStats = new ThreadPoolStatsImpl(
                thpool.getWorkQueue(0).getThreadPool());
            StatsProviderManager.register("orb", PluginPoint.SERVER,
                "thread-pool/orb/threadpool/"+ThreadPoolName, tpStats);
          
            configureCopiers(orb);
View Full Code Here

Examples of org.glassfish.enterprise.iiop.util.ThreadPoolStats

           
            ThreadPoolManager tpool =  orb.getThreadPoolManager();
            // ORB creates its own threadpool if threadpoolMgr was null above
            ThreadPool thpool=tpool.getDefaultThreadPool();
            String ThreadPoolName = thpool.getName();
            ThreadPoolStats tpStats = new ThreadPoolStatsImpl(
                thpool.getWorkQueue(0).getThreadPool());
            StatsProviderManager.register("orb", PluginPoint.SERVER,
                "thread-pool/orb/threadpool/"+ThreadPoolName, tpStats);
          
            configureCopiers(orb);
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.