Search in sources :

Example 1 with ThreadPoolMonitor

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

the class GlassfishNetworkListener method configureThreadPoolConfig.

@Override
protected ThreadPoolConfig configureThreadPoolConfig(final NetworkListener networkListener, final ThreadPool threadPool) {
    final ThreadPoolConfig config = super.configureThreadPoolConfig(networkListener, threadPool);
    config.getInitialMonitoringConfig().addProbes(new ThreadPoolMonitor(grizzlyService.getMonitoring(), name, config));
    return config;
}
Also used : ThreadPoolMonitor(com.sun.enterprise.v3.services.impl.monitor.ThreadPoolMonitor) ThreadPoolConfig(org.glassfish.grizzly.threadpool.ThreadPoolConfig)

Aggregations

ThreadPoolMonitor (com.sun.enterprise.v3.services.impl.monitor.ThreadPoolMonitor)1 ThreadPoolConfig (org.glassfish.grizzly.threadpool.ThreadPoolConfig)1