| | |
| | | if (null != port) { |
| | | ioServerOption.setPort(port); |
| | | } else { |
| | | ioServerOption.setPort(PORT); |
| | | port = PORT; |
| | | ioServerOption.setPort(port); |
| | | } |
| | | |
| | | //确认结尾标志 |
| | |
| | | // 配置系统心跳间隔 |
| | | ioServerOption.setReaderIdleTime(5 * 60); |
| | | |
| | | NettyServer ioServer = new NettyServer(ioServerOption, messageConsume, ioSessionListener, heartbeatProvider); |
| | | ioServer = new NettyServer(ioServerOption, messageConsume, ioSessionListener, heartbeatProvider); |
| | | ioServer.startup(); |
| | | |
| | | |
| | | log.info("* "); |
| | | log.info("* ========================"); |
| | | log.info("* "); |
| | | log.info("* [GRAIN-SERVER:BHZN_GRAIN,PORT={}]" + port); |
| | | log.info("* [GRAIN-SERVER:BHZN_GRAIN-V2,PORT={}]" + port); |
| | | log.info("* "); |
| | | log.info("* ========================"); |
| | | log.info("* "); |
| | | |
| | | System.out.println("* ========================"); |
| | | System.out.println("* "); |
| | | System.out.println("* [GRAIN-SERVER:BHZN_GRAIN,PORT={}]" + port); |
| | | System.out.println("* [GRAIN-SERVER:BHZN_GRAIN-V2,PORT={}]" + port); |
| | | System.out.println("* "); |
| | | System.out.println("* ========================"); |
| | | } |