Ejemplo n.º 1
0
 private void watchForData() throws InterruptedException, KeeperException {
   if (LOG.isTraceEnabled()) {
     LOG.trace(String.format("Getting value for %s", nodePath));
   }
   value = decode(zk.getData(nodePath, watcher, stat));
 }
Ejemplo n.º 2
0
 public void set(T v) throws KeeperException, InterruptedException {
   zk.setData(nodePath, encode(v), -1);
 }
Ejemplo n.º 3
0
 private void watchForCreation() throws InterruptedException, KeeperException {
   value = null;
   zk.exists(nodePath, watcher);
 }