/** * new a node watcher * @param nodePath the node path * @return the node watcher */ public NodeWatcher newNodeWatcher(String nodePath){ return newNodeWatcher(nodePath, null); }
NodeWatcher watcher = zk.client().newNodeWatcher(jobInstanceNode, new NodeListener() { @Override public void onDelete() {