gpt4 book ai didi

com.alibaba.wasp.zookeeper.ZKAssign.deleteAllNodes()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-13 11:22:41 27 4
gpt4 key购买 nike

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

ZKAssign.deleteAllNodes介绍

[英]Deletes all unassigned nodes regardless of their state.

No watchers are set.

This method is used by the Master during cluster startup to clear out any existing state from other cluster runs.
[中]删除所有未分配的节点,无论其状态如何。
没有设置观察者。
主机在集群启动期间使用此方法从其他集群运行中清除任何现有状态。

代码示例

代码示例来源:origin: alibaba/wasp

@After
public void after() throws KeeperException {
 if (this.watcher != null) {
  // Clean up all znodes
  ZKAssign.deleteAllNodes(this.watcher);
  this.watcher.close();
 }
}

代码示例来源:origin: alibaba/wasp

InterruptedException, KeeperException {
ZKAssign.deleteAllNodes(watcher);
ZKUtil.listChildrenAndWatchForNewChildren(this.watcher,
  this.watcher.assignmentZNode);

代码示例来源:origin: alibaba/wasp

am.shutdown();
ZKAssign.deleteAllNodes(this.watcher);

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