Search in sources :

Example 1 with ConnectionQueueStatsProviderGlobal

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);
}
Also used : ConnectionQueueStatsProvider(com.sun.enterprise.v3.services.impl.monitor.stats.ConnectionQueueStatsProvider) ConnectionQueueStatsProviderGlobal(com.sun.enterprise.v3.services.impl.monitor.stats.ConnectionQueueStatsProviderGlobal)

Aggregations

ConnectionQueueStatsProvider (com.sun.enterprise.v3.services.impl.monitor.stats.ConnectionQueueStatsProvider)1 ConnectionQueueStatsProviderGlobal (com.sun.enterprise.v3.services.impl.monitor.stats.ConnectionQueueStatsProviderGlobal)1