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();
}
Aggregations