From 2ee97ee70411acb661078576da49c93b48e6784a Mon Sep 17 00:00:00 2001 From: "Frank.R.Wu" Date: Thu, 23 Dec 2021 21:40:54 +0800 Subject: [PATCH] feat: update NodeCenterServer rename NodeCenterServer.parseConf to NodeCenterServer.configServer --- src/main/java/org/bdware/server/NodeCenterServer.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/bdware/server/NodeCenterServer.java b/src/main/java/org/bdware/server/NodeCenterServer.java index 8bacdfc..6966dd0 100644 --- a/src/main/java/org/bdware/server/NodeCenterServer.java +++ b/src/main/java/org/bdware/server/NodeCenterServer.java @@ -64,7 +64,7 @@ public class NodeCenterServer { Level.OFF); } - public static void parseConf(CMDConf cmdConf) { + public static void configServer(CMDConf cmdConf) { LocalLHSProxy.port = cmdConf.doipPort; LocalLHSProxy.enabled = true; if (cmdConf.disableDoRepo) { @@ -88,7 +88,6 @@ public class NodeCenterServer { } if (cmdConf.debug != null) { if (!cmdConf.debug.isEmpty()) { - try { String[] classes = cmdConf.debug.split(","); for (String clz : classes) { @@ -123,9 +122,9 @@ public class NodeCenterServer { if (!confFile.exists() && confTemplate.exists()) { FileUtils.copyFile(confTemplate, confFile); } - CMDConf cmf = CMDConf.parseConf(CONFIG_PATH).parseArgs(args); + CMDConf cmf = CMDConf.parseFile(CONFIG_PATH).parseArgs(args); - parseConf(cmf); + configServer(cmf); if (LocalLHSProxy.enabled) { threadPool = Executors.newSingleThreadExecutor();