use of herddb.model.NodeMetadata in project herddb by diennea.
the class ZookeeperMetadataStorageManager method getNode.
private NodeMetadata getNode(String nodeId) throws KeeperException, IOException, InterruptedException {
Stat stat = new Stat();
byte[] node = ensureZooKeeper().getData(nodesPath + "/" + nodeId, mainWatcher, stat);
NodeMetadata nodeMetadata = NodeMetadata.deserialize(node, stat.getVersion());
return nodeMetadata;
}
Aggregations