Search in sources :

Example 1 with ThreadPoolStatsProviderGlobal

use of com.sun.enterprise.v3.services.impl.monitor.stats.ThreadPoolStatsProviderGlobal in project Payara by payara.

the class GrizzlyMonitoring method registerThreadPoolStatsProviderGlobal.

/**
 * Register server wide thread-pool statistics provider
 */
public void registerThreadPoolStatsProviderGlobal(String name) {
    ThreadPoolStatsProvider threadPoolStatsProvider = new ThreadPoolStatsProviderGlobal(name);
    ThreadPoolStatsProvider oldthreadPoolStatsProvider = threadPoolStatsProvidersMap.put(name, threadPoolStatsProvider);
    if (oldthreadPoolStatsProvider != null) {
        StatsProviderManager.unregister(oldthreadPoolStatsProvider);
    }
    StatsProviderManager.register(CONFIG_ELEMENT, PluginPoint.SERVER, subtreePrefix(name) + "/global-thread-pool-stats", threadPoolStatsProvider);
    updateGlobalThreadPoolStatsProvider();
}
Also used : ThreadPoolStatsProvider(com.sun.enterprise.v3.services.impl.monitor.stats.ThreadPoolStatsProvider) ThreadPoolStatsProviderGlobal(com.sun.enterprise.v3.services.impl.monitor.stats.ThreadPoolStatsProviderGlobal)

Aggregations

ThreadPoolStatsProvider (com.sun.enterprise.v3.services.impl.monitor.stats.ThreadPoolStatsProvider)1 ThreadPoolStatsProviderGlobal (com.sun.enterprise.v3.services.impl.monitor.stats.ThreadPoolStatsProviderGlobal)1