@Override protected void doStop() throws Exception { super.doStop(); if (network != null) { network.stop(); } if (executor != null) { executor.shutdown(); try { boolean terminated = false; do { // wait until the pool has terminated terminated = executor.awaitTermination(60, TimeUnit.SECONDS); } while (!terminated); } catch (InterruptedException e) { executor.shutdownNow(); LOG.warn("waitForTermination interrupted"); } } LOG.info("Default Internal kdc server stopped."); } }
@Override protected void doStop() throws Exception { super.doStop(); if (network != null) { network.stop(); } if (executor != null) { executor.shutdown(); try { boolean terminated = false; do { // wait until the pool has terminated terminated = executor.awaitTermination(60, TimeUnit.SECONDS); } while (!terminated); } catch (InterruptedException e) { executor.shutdownNow(); LOG.warn("waitForTermination interrupted"); } } LOG.info("Netty kdc server stopped."); } }
@Override protected void doStop() throws Exception { super.doStop(); if (network != null) { network.stop(); } if (executor != null) { executor.shutdown(); try { boolean terminated = false; do { // wait until the pool has terminated terminated = executor.awaitTermination(60, TimeUnit.SECONDS); } while (!terminated); } catch (InterruptedException e) { executor.shutdownNow(); LOG.warn("waitForTermination interrupted"); } } LOG.info("Netty kdc server stopped."); } }
@Override protected void doStop() throws Exception { super.doStop(); if (network != null) { network.stop(); } if (executor != null) { executor.shutdown(); try { boolean terminated = false; do { // wait until the pool has terminated terminated = executor.awaitTermination(60, TimeUnit.SECONDS); } while (!terminated); } catch (InterruptedException e) { executor.shutdownNow(); LOG.warn("waitForTermination interrupted"); } } LOG.info("Default Internal kdc server stopped."); } }
public void stop() throws KrbException { try { doStop(); } catch (Exception e) { throw new KrbException("Failed to stop " + getServiceName(), e); } started = false; }
public void stop() throws KrbException { try { doStop(); } catch (Exception e) { throw new KrbException("Failed to stop " + getServiceName(), e); } started = false; }