public boolean startControlServer() { PlatFormMain.log.info("启动ControlServer中......"); try { controlServer = new ControlServer(); Thread thread = new Thread(controlServer); thread.start(); // 循环监测状态直到节点启动为止。 while (controlServer.status != "INIT_Ok") { SetInfoToShowWindow(controlServer.status); PlatFormMain.log.info("controlSer 正在启动"); Thread.sleep(1000); } } catch (Exception ex) { ex.printStackTrace(); return false; } return true; }