@Override public void doClose() { client.close(); }
@Override public void doClose() { client.close(); }
/** * Closes the offset handler. * * @throws IOException Thrown, if the handler cannot be closed properly. */ public void close() throws IOException { curatorClient.close(); }
@Override public void close() { curatorFramework.close(); }
void shutdown () { curatorFramework.close(); }
public void close() { _curator.close(); _curator = null; } }
@Override public void close() { mClient.close(); }
/** * Close this ZK connection. */ public void close() throws IOException { if (zk != null) { zk.close(); } }
@Override public void close() { this.active.set(false); zk.close(); }
@Override public void stop() { log.info("Stopping Curator"); framework.close(); } }
@Override public void shutdown() { if (zkClient != null) { zkClient.close(); } if (fbs != null) { fbs.shutdown(); } }
public void removeServerInstanceFromZooKeeper() throws Exception { setDeregisteredWithZooKeeper(true); if (znode != null) { znode.close(); znode = null; } zooKeeperClient.close(); LOG.info("Server instance removed from ZooKeeper."); }
@Override public void close() throws Exception { if (this.nodeCache != null) { this.nodeCache.getListenable().removeListener(listener); this.nodeCache.close(); } if (this.zkClient != null) { this.zkClient.close(); } pool.shutdown(); }
protected void tearDownServerAndCurator() { try { curator.close(); server.close(); } catch (IOException ex) { throw new RuntimeException(ex); } }
void tearDown() throws Exception { cf.close(); testingCluster.stop(); }
private void initCuratorClient(final RegistryCenterConfiguration config) { client.start(); try { if (!client.blockUntilConnected(config.getRetryIntervalMilliseconds() * config.getMaxRetries(), TimeUnit.MILLISECONDS)) { client.close(); throw new OperationTimeoutException(); } } catch (final InterruptedException | OperationTimeoutException ex) { CuratorZookeeperExceptionHandler.handleException(ex); } }
@After public void tearDown() throws Exception { curatorCoordinator.stop(); cf.close(); testingCluster.close(); }
@After public void tearDown() throws Exception { announcer.stop(); cf.close(); testingCluster.stop(); }
@After public void tearDown() throws Exception { workerCuratorCoordinator.stop(); workerTaskMonitor.stop(); cf.close(); testingCluster.stop(); }
@After public void tearDown() throws Exception { batchServerInventoryView.stop(); filteredBatchServerInventoryView.stop(); serverAnnouncer.unannounce(); announcer.stop(); cf.close(); testingCluster.stop(); }