org.linkedin.zookeeper.client.ZKData.getData()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(1.0k)|赞(0)|评价(0)|浏览(104)

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

ZKData.getData介绍

暂无

代码示例

代码示例来源:origin: org.fusesource.fabric/fabric-jaas

protected void fetchData() throws Exception {
  ZKData<String> zkData = zooKeeper.getZKStringData(path, this);
  String value = zkData.getData();
  if (value != null) {
    clear();
    load(new StringReader(value));
  }
}

代码示例来源:origin: org.pongasoft/org.linkedin.zookeeper-impl

/**
 * Returns both the data as a string as well as the stat (and sets a watcher if not null)
 */
@Override
public ZKData<String> getZKStringData(String path, Watcher watcher)
 throws InterruptedException, KeeperException
{
 ZKData<byte[]> zkData = getZKByteData(path, watcher);
 return new ZKData<String>(toStringData(zkData.getData()), zkData.getStat());
}

代码示例来源:origin: org.pongasoft/org.linkedin.zookeeper-impl

new TrackedNode<T>(path, res.getData(), res.getStat(), depth);
if(oldTrackedNode != null)

相关文章