mirror of
https://gitee.com/BDWare/router-backend
synced 2025-01-26 01:34:04 +00:00
feat: update NodeCenterServer
rename NodeCenterServer.parseConf to NodeCenterServer.configServer
This commit is contained in:
parent
eff33648e1
commit
2ee97ee704
@ -64,7 +64,7 @@ public class NodeCenterServer {
|
|||||||
Level.OFF);
|
Level.OFF);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void parseConf(CMDConf cmdConf) {
|
public static void configServer(CMDConf cmdConf) {
|
||||||
LocalLHSProxy.port = cmdConf.doipPort;
|
LocalLHSProxy.port = cmdConf.doipPort;
|
||||||
LocalLHSProxy.enabled = true;
|
LocalLHSProxy.enabled = true;
|
||||||
if (cmdConf.disableDoRepo) {
|
if (cmdConf.disableDoRepo) {
|
||||||
@ -88,7 +88,6 @@ public class NodeCenterServer {
|
|||||||
}
|
}
|
||||||
if (cmdConf.debug != null) {
|
if (cmdConf.debug != null) {
|
||||||
if (!cmdConf.debug.isEmpty()) {
|
if (!cmdConf.debug.isEmpty()) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
String[] classes = cmdConf.debug.split(",");
|
String[] classes = cmdConf.debug.split(",");
|
||||||
for (String clz : classes) {
|
for (String clz : classes) {
|
||||||
@ -123,9 +122,9 @@ public class NodeCenterServer {
|
|||||||
if (!confFile.exists() && confTemplate.exists()) {
|
if (!confFile.exists() && confTemplate.exists()) {
|
||||||
FileUtils.copyFile(confTemplate, confFile);
|
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) {
|
if (LocalLHSProxy.enabled) {
|
||||||
threadPool = Executors.newSingleThreadExecutor();
|
threadPool = Executors.newSingleThreadExecutor();
|
||||||
|
Loading…
Reference in New Issue
Block a user