@Override public void restart() throws Exception { if (brokerService.isRestartAllowed()) { brokerService.requestRestart(); brokerService.stop(); } else { throw new Exception("Restart is not allowed"); } }
protected void stopBroker() { // we can no longer keep the lock so lets fail LOG.error("{}, no longer able to keep the exclusive lock so giving up being a master", brokerService.getBrokerName()); try { if( brokerService.isRestartAllowed() ) { brokerService.requestRestart(); } brokerService.stop(); } catch (Exception e) { LOG.warn("Failure occurred while stopping broker"); } }
@Override public void run() { try { if( broker.isRestartAllowed() ) { broker.requestRestart(); } broker.setSystemExitOnShutdown(isSystemExitOnShutdown()); broker.stop(); } catch (Exception e) { LOG.warn("Failure occurred while stopping broker", e); } } }.start();
@Override public void restart() throws Exception { if (brokerService.isRestartAllowed()) { brokerService.requestRestart(); brokerService.stop(); } else { throw new Exception("Restart is not allowed"); } }
@Override public void restart() throws Exception { if (brokerService.isRestartAllowed()) { brokerService.requestRestart(); brokerService.stop(); } else { throw new Exception("Restart is not allowed"); } }
@Override public void restart() throws Exception { if (brokerService.isRestartAllowed()) { brokerService.requestRestart(); brokerService.stop(); } else { throw new Exception("Restart is not allowed"); } }
protected void stopBroker() { // we can no longer keep the lock so lets fail LOG.error("{}, no longer able to keep the exclusive lock so giving up being a master", brokerService.getBrokerName()); try { if( brokerService.isRestartAllowed() ) { brokerService.requestRestart(); } brokerService.stop(); } catch (Exception e) { LOG.warn("Failure occurred while stopping broker"); } }
protected void stopBroker() { // we can no longer keep the lock so lets fail LOG.error("{}, no longer able to keep the exclusive lock so giving up being a master", brokerService.getBrokerName()); try { if( brokerService.isRestartAllowed() ) { brokerService.requestRestart(); } brokerService.stop(); } catch (Exception e) { LOG.warn("Failure occurred while stopping broker"); } }
protected void stopBroker() { // we can no longer keep the lock so lets fail LOG.error("{}, no longer able to keep the exclusive lock so giving up being a master", brokerService.getBrokerName()); try { if( brokerService.isRestartAllowed() ) { brokerService.requestRestart(); } brokerService.stop(); } catch (Exception e) { LOG.warn("Failure occurred while stopping broker"); } }
@Override public void run() { try { if( broker.isRestartAllowed() ) { broker.requestRestart(); } broker.setSystemExitOnShutdown(isSystemExitOnShutdown()); broker.stop(); } catch (Exception e) { LOG.warn("Failure occurred while stopping broker", e); } } }.start();
@Override public void run() { try { if( broker.isRestartAllowed() ) { broker.requestRestart(); } broker.setSystemExitOnShutdown(isSystemExitOnShutdown()); broker.stop(); } catch (Exception e) { LOG.warn("Failure occurred while stopping broker", e); } } }.start();
@Override public void run() { try { if( broker.isRestartAllowed() ) { broker.requestRestart(); } broker.setSystemExitOnShutdown(isSystemExitOnShutdown()); broker.stop(); } catch (Exception e) { LOG.warn("Failure occurred while stopping broker", e); } } }.start();