gpt4 book ai didi

org.apache.curator.utils.ZKPaths.deleteChildren()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-17 05:42:40 27 4
gpt4 key购买 nike

本文整理了Java中org.apache.curator.utils.ZKPaths.deleteChildren()方法的一些代码示例,展示了ZKPaths.deleteChildren()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZKPaths.deleteChildren()方法的具体详情如下:
包路径:org.apache.curator.utils.ZKPaths
类名称:ZKPaths
方法名:deleteChildren

ZKPaths.deleteChildren介绍

[英]Recursively deletes children of a node.
[中]递归删除节点的子节点。

代码示例

代码示例来源:origin: org.apache.curator/curator-framework

@Override
  public void performBackgroundOperation(OperationAndData<String> dummy) throws Exception
  {
    try
    {
      ZKPaths.deleteChildren(client.getZooKeeper(), mainOperationAndData.getData(), false);
    }
    catch ( KeeperException e )
    {
      // ignore
    }
    client.queueOperation(mainOperationAndData);
  }
};

代码示例来源:origin: org.apache.airavata/airavata-gfac-core

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);
  }
}

代码示例来源:origin: dataArtisans/yahoo-streaming-benchmark

@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;
  }
}

代码示例来源:origin: xiancloud/xian

deleteChildren(zookeeper, fullPath, true);
  deleteChildren(zookeeper, path, true);

代码示例来源:origin: org.apache.curator/curator-client

deleteChildren(zookeeper, fullPath, true);
  deleteChildren(zookeeper, path, true);

代码示例来源:origin: info.xiancloud/xian-curator-framework

@Override
  public void performBackgroundOperation(OperationAndData<String> dummy) throws Exception
  {
    try
    {
      ZKPaths.deleteChildren(client.getZooKeeper(), mainOperationAndData.getData(), false);
    }
    catch ( KeeperException e )
    {
      // ignore
    }
    client.queueOperation(mainOperationAndData);
  }
};

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com