本文整理了Java中org.linkedin.zookeeper.client.ZKData.getData()
方法的一些代码示例,展示了ZKData.getData()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZKData.getData()
方法的具体详情如下:
包路径:org.linkedin.zookeeper.client.ZKData
类名称: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)
内容来源于网络,如有侵权,请联系作者删除!