@Override public synchronized void nodeDataChanged(String path) { if (path.equals(node)) { nodeCreated(path); } }
@Override public synchronized void nodeDeleted(String path) { if (path.equals(node)) { try { if (ZKUtil.watchAndCheckExists(watcher, node)) { nodeCreated(path); } else { this.data = null; } } catch (KeeperException e) { abortable.abort("Unexpected exception handling nodeDeleted event", e); } } }