DataInputStream in = null;
try {
byte[] bytes = curator.getData().forPath(path);
in = new DataInputStream(new ByteArrayInputStream(bytes));
PingData tmp = new PingData();
tmp.readFrom(in);
return tmp;
} catch (Exception e) {
log.debug(String.format("Failed to read ZooKeeper znode: %s", path), e);
} finally {
Util.close(in);