/** 初始化作业监听服务. */ public void listen() { int port = configService.getMonitorPort(); if (port < 0) { return; } try { log.info("Elastic job: monitor service is running, the port is '{}'", port); openSocketForMonitor(port); } catch (final IOException ex) { log.warn(ex.getMessage()); } }