Package zk

Examples of zk.ZkCtl.watch()


   
    CountDownLatch connectedSignal = new CountDownLatch(1);
    TestStore ts = new TestStore("","","","","");
    ts.setSignal(connectedSignal);
    ZkCtl zkCtl = new ZkCtl(TestConf.host, TestConf.root, "", "", ts);
    zkCtl.watch("/iserviceTest/node1");
    zk.setData("/iserviceTest/node1", "node1-node1-new".getBytes(), 0);

    connectedSignal.await();
    this.clearUpZk(zk);
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.