public void start() { PropertyConfigurator.configure("config/log4j_Main.properties"); consoleShowBean = new ConsoleShowBean(this); consoleShowBean.showWindow(); PlatFormMain.log.info("显示界面已经启动"); consoleShowBean.SetStatus("初始化..."); PlatFormMain.log.info("设置状态为初始化"); if (!netTest()) { PlatFormMain.log.error("网络以及Active总线异常"); consoleShowBean.SetStatus("网络ActiveMQ异常"); return; } if (!MongoDBTest.doTest()) { log.error("MongoDB异常,请检查MongoDB设置......."); consoleShowBean.SetStatus("MongoDB异常,请检查MongoDB设置......."); return; } PlatFormMain.log.info("清空消息总线"); cleanMessageBus(); showTaskSize(); consoleShowBean.SetStatus("消息总线清空完毕"); if (!startControlServer()) { PlatFormMain.log.error("启动ControlServer异常"); return; } else { consoleShowBean.SetStatus("【ControlServer】启动成功,节点数" + controlServer.allNodeCondition.size()); consoleShowBean.mcs.EnableButton(); } if (!startReporter()) { PlatFormMain.log.info("ControlCenter 数据库汇报定时器"); consoleShowBean.SetStatus("【ControlCenter 数据库汇报定时器】启动失败"); } else { PlatFormMain.log.info("【ControlCenter 数据库汇报定时器】启动成功"); } }