Thread pool parameter change and modification naming

pull/233/head
chen.ma 3 years ago
parent b6c4033d77
commit d25b2daa96

@ -27,7 +27,7 @@ public class ChangeThreadPoolConstants {
public static final String CHANGE_THREAD_POOL_TEXT = "[{}] Changing thread pool parameters. " + public static final String CHANGE_THREAD_POOL_TEXT = "[{}] Changing thread pool parameters. " +
"\n coreSize :: [{}]" + "\n coreSize :: [{}]" +
"\n maxSize :: [{}]" + "\n maximumSize :: [{}]" +
"\n queueType :: [{}]" + "\n queueType :: [{}]" +
"\n capacity :: [{}]" + "\n capacity :: [{}]" +
"\n keepAliveTime :: [{}]" + "\n keepAliveTime :: [{}]" +

@ -95,7 +95,7 @@ public class JettyWebThreadPoolHandler extends AbstractWebThreadPoolService {
log.info( log.info(
"[JETTY] Changed web thread pool. " + "[JETTY] Changed web thread pool. " +
"\n coreSize :: [{}]" + "\n coreSize :: [{}]" +
"\n maxSize :: [{}]", "\n maximumSize :: [{}]",
String.format(CHANGE_DELIMITER, minThreads, jettyExecutor.getMinThreads()), String.format(CHANGE_DELIMITER, minThreads, jettyExecutor.getMinThreads()),
String.format(CHANGE_DELIMITER, maxThreads, jettyExecutor.getMaxThreads())); String.format(CHANGE_DELIMITER, maxThreads, jettyExecutor.getMaxThreads()));
} catch (Exception ex) { } catch (Exception ex) {

@ -125,7 +125,7 @@ public class TomcatWebThreadPoolHandler extends AbstractWebThreadPoolService {
log.info( log.info(
"[TOMCAT] Changed web thread pool. " + "[TOMCAT] Changed web thread pool. " +
"\n coreSize :: [{}]" + "\n coreSize :: [{}]" +
"\n maxSize :: [{}]" + "\n maximumSize :: [{}]" +
"\n keepAliveTime :: [{}]", "\n keepAliveTime :: [{}]",
String.format(CHANGE_DELIMITER, originalCoreSize, threadPoolParameterInfo.getCoreSize()), String.format(CHANGE_DELIMITER, originalCoreSize, threadPoolParameterInfo.getCoreSize()),
String.format(CHANGE_DELIMITER, originalMaximumPoolSize, threadPoolParameterInfo.getMaxSize()), String.format(CHANGE_DELIMITER, originalMaximumPoolSize, threadPoolParameterInfo.getMaxSize()),

@ -164,7 +164,7 @@ public class UndertowWebThreadPoolHandler extends AbstractWebThreadPoolService {
log.info( log.info(
"[UNDERTOW] Changed web thread pool. " + "[UNDERTOW] Changed web thread pool. " +
"\n coreSize :: [{}]" + "\n coreSize :: [{}]" +
"\n maxSize :: [{}]" + "\n maximumSize :: [{}]" +
"\n keepAliveTime :: [{}]", "\n keepAliveTime :: [{}]",
String.format(CHANGE_DELIMITER, originalCoreSize, coreSize), String.format(CHANGE_DELIMITER, originalCoreSize, coreSize),
String.format(CHANGE_DELIMITER, originalMaximumPoolSize, maxSize), String.format(CHANGE_DELIMITER, originalMaximumPoolSize, maxSize),

Loading…
Cancel
Save