use of com.sun.enterprise.v3.services.impl.monitor.stats.ConnectionQueueStatsProviderGlobal in project Payara by payara.
the class GrizzlyMonitoring method registerConnectionQueueStatsProviderGlobal.
/**
* Register server wide connection queue statistics provider for a network listener
*/
public void registerConnectionQueueStatsProviderGlobal(String name) {
ConnectionQueueStatsProvider connectionQueueStatsProvider = new ConnectionQueueStatsProviderGlobal(name);
ConnectionQueueStatsProvider oldConnectionQueueStatsProvider = connectionQueueStatsProvidersMap.put(name, connectionQueueStatsProvider);
if (oldConnectionQueueStatsProvider != null) {
StatsProviderManager.unregister(oldConnectionQueueStatsProvider);
}
StatsProviderManager.register(CONFIG_ELEMENT, PluginPoint.SERVER, subtreePrefix(name) + "/connection-queue", connectionQueueStatsProvider);
}
Aggregations