@Override public void performBackgroundOperation(OperationAndData<String> dummy) throws Exception { try { ZKPaths.deleteChildren(client.getZooKeeper(), mainOperationAndData.getData(), false); } catch ( KeeperException e ) { // ignore } client.queueOperation(mainOperationAndData); } };
private static void removeCancelDeliveryTagNode(String experimentPath, CuratorFramework curatorClient) throws Exception { Stat exists = curatorClient.checkExists().forPath(experimentPath + AiravataZKUtils.CANCEL_DELIVERY_TAG_POSTFIX); if (exists != null) { ZKPaths.deleteChildren(curatorClient.getZookeeperClient().getZooKeeper(), experimentPath + AiravataZKUtils.CANCEL_DELIVERY_TAG_POSTFIX, true); } }
@Override public void stop() { try { ZKPaths.deleteChildren(client.getZookeeperClient().getZooKeeper(), "/", true); } catch (Exception e) { LOG.warn("Error while cleaning the ZooKeeper nodes.", e); } if (client != null) { client.close(); client = null; } }
deleteChildren(zookeeper, fullPath, true); deleteChildren(zookeeper, path, true);
deleteChildren(zookeeper, fullPath, true); deleteChildren(zookeeper, path, true);
@Override public void performBackgroundOperation(OperationAndData<String> dummy) throws Exception { try { ZKPaths.deleteChildren(client.getZooKeeper(), mainOperationAndData.getData(), false); } catch ( KeeperException e ) { // ignore } client.queueOperation(mainOperationAndData); } };