@Override public void start() throws SmppChannelException { if (isDestroyed()) { throw new SmppChannelException("Unable to start: server is destroyed"); } try { serverChannel = this.serverBootstrap.bind(new InetSocketAddress(configuration.getHost(), configuration.getPort())); logger.info("{} started at {}:{}", configuration.getName(), configuration.getHost(), configuration.getPort()); } catch (ChannelException e) { throw new SmppChannelException(e.getMessage(), e); } }
this.messageServer.bind(new InetSocketAddress(this.messageServerPort)); } catch (ChannelException e) { LOG.warn(e.getMessage() + "; try to rebind again."); this.messageServerPort = NetworkUtils.getValidServerPort(this.messageServerPort); this.messageServer.bind(new InetSocketAddress(this.messageServerPort));
@Override public void start() throws SmppChannelException { if (isDestroyed()) { throw new SmppChannelException("Unable to start: server is destroyed"); } try { serverChannel = this.serverBootstrap.bind(new InetSocketAddress(configuration.getHost(), configuration.getPort())); logger.info("{} started at {}:{}", configuration.getName(), configuration.getHost(), configuration.getPort()); } catch (ChannelException e) { throw new SmppChannelException(e.getMessage(), e); } }
@Override public void start() throws SmppChannelException { if (isDestroyed()) { throw new SmppChannelException("Unable to start: server is destroyed"); } try { serverChannel = this.serverBootstrap.bind(new InetSocketAddress(configuration.getHost(), configuration.getPort())); logger.info("{} started at {}:{}", configuration.getName(), configuration.getHost(), configuration.getPort()); } catch (ChannelException e) { throw new SmppChannelException(e.getMessage(), e); } }
@Override public void start() throws SmppChannelException { if (isDestroyed()) { throw new SmppChannelException("Unable to start: server is destroyed"); } try { serverChannel = this.serverBootstrap.bind(new InetSocketAddress(configuration.getHost(), configuration.getPort())); logger.info("{} started at {}:{}", configuration.getName(), configuration.getHost(), configuration.getPort()); } catch (ChannelException e) { throw new SmppChannelException(e.getMessage(), e); } }