Skip to content

Commit

Permalink
JAMES-1772 Name thread pools of AsyncServers
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaechler authored and Raphael Ouazana committed Jun 21, 2016
1 parent a2bb720 commit 606120d
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -466,12 +466,12 @@ protected String getThreadPoolJMXPath() {

@Override
protected Executor createBossExecutor() {
return JMXEnabledThreadPoolExecutor.newCachedThreadPool(getThreadPoolJMXPath(), "boss");
return JMXEnabledThreadPoolExecutor.newCachedThreadPool(getThreadPoolJMXPath(), getDefaultJMXName() + "-boss");
}

@Override
protected Executor createWorkerExecutor() {
return JMXEnabledThreadPoolExecutor.newCachedThreadPool(getThreadPoolJMXPath(), "worker");
return JMXEnabledThreadPoolExecutor.newCachedThreadPool(getThreadPoolJMXPath(), getDefaultJMXName() + "-worker");
}

/**
Expand Down Expand Up @@ -561,7 +561,7 @@ protected void configureBootstrap(ServerBootstrap bootstrap) {
* @return ehandler
*/
protected ExecutionHandler createExecutionHander() {
return new ExecutionHandler(new JMXEnabledOrderedMemoryAwareThreadPoolExecutor(maxExecutorThreads, 0, 0, getThreadPoolJMXPath(), "executor"));
return new ExecutionHandler(new JMXEnabledOrderedMemoryAwareThreadPoolExecutor(maxExecutorThreads, 0, 0, getThreadPoolJMXPath(), getDefaultJMXName() + "-executor"));
}

/**
Expand Down

0 comments on commit 606120d

Please sign in to comment.