public void stop() { smppServer.stop(); }
public void stop() throws Exception { // stop SmppServerOpsThread logger.info("Stopping SmppServerOpsThread..."); this.smppServerOpsThread.setStarted(false); logger.info("SmppServerOpsThread stopped"); logger.info("Stopping SMPP server..."); this.defaultSmppServer.stop(); // this.executor.shutdownNow(); this.monitorExecutor.shutdownNow(); this.executor.awaitTermination(10, TimeUnit.SECONDS); this.executor.shutdown(); // this.monitorExecutor.shutdown(); logger.info("SMPP server stopped"); logger.info(String.format("Server counters: %s", this.defaultSmppServer.getCounters())); this.store(); }
public void stop() throws Exception { // stop SmppServerOpsThread logger.info("Stopping SmppServerOpsThread..."); this.smppServerOpsThread.setStarted(false); logger.info("SmppServerOpsThread stopped"); logger.info("Stopping SMPP server..."); this.defaultSmppServer.stop(); // this.executor.shutdownNow(); this.monitorExecutor.shutdownNow(); this.executor.awaitTermination(10, TimeUnit.SECONDS); this.executor.shutdown(); // this.monitorExecutor.shutdown(); logger.info("SMPP server stopped"); logger.info(String.format("Server counters: %s", this.defaultSmppServer.getCounters())); this.store(); }
@Override public void destroy() { this.bindTimer.cancel(); stop(); this.serverBootstrap.releaseExternalResources(); this.serverBootstrap = null; this.writeTimeoutTimer.stop(); unregisterMBean(); logger.info("{} destroyed on SMPP port [{}]", configuration.getName(), configuration.getPort()); }
@Override public void destroy() { this.bindTimer.cancel(); stop(); this.serverBootstrap.releaseExternalResources(); this.serverBootstrap = null; this.writeTimeoutTimer.stop(); unregisterMBean(); logger.info("{} destroyed on SMPP port [{}]", configuration.getName(), configuration.getPort()); }
@Override public void destroy() { this.bindTimer.cancel(); stop(); this.serverBootstrap.releaseExternalResources(); this.serverBootstrap = null; this.writeTimeoutTimer.stop(); unregisterMBean(); logger.info("{} destroyed on SMPP port [{}]", configuration.getName(), configuration.getPort()); }
@Override public void destroy() { this.bindTimer.cancel(); stop(); this.serverBootstrap.releaseExternalResources(); this.serverBootstrap = null; this.writeTimeoutTimer.stop(); unregisterMBean(); logger.info("{} destroyed on SMPP port [{}]", configuration.getName(), configuration.getPort()); }
public void doStop() { if (this.session0 != null) { this.session0.unbind(5000); this.session0.destroy(); this.session0 = null; } if (this.defaultSmppServer != null) { this.defaultSmppServer.stop(); this.defaultSmppServer.destroy(); this.defaultSmppServer = null; } if (clientBootstrap != null) { try { clientBootstrap.destroy(); executor.shutdownNow(); monitorExecutor.shutdownNow(); } catch (Exception e) { } clientBootstrap = null; executor = null; monitorExecutor = null; } enableStart(true); setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); this.addMessage("Session has been stopped", ""); }