Examples of unsubscribeChildChanges()


Examples of org.apache.helix.manager.zk.ZkClient.unsubscribeChildChanges()

        Assert.assertEquals(childWatch.size(), 1, "ZooKeeper#watchManager#childWatches should have 1 child watch on path: " + path);
        Assert.assertEquals(childWatch.get(0), path, "ZooKeeper#watchManager#childWatches should have 1 child watch on path: " + path);


        client.unsubscribeDataChanges(path, listener);
        client.unsubscribeChildChanges(path, listener);
        // System.out.println("watchMap2: " + watchMap);
        ZkTestHelper.expireSession(client);

        // after session expiry, those watches should be removed
        watchMap = ZkTestHelper.getZkWatch(client);
View Full Code Here

Examples of org.apache.helix.manager.zk.ZkClient.unsubscribeChildChanges()

        e.printStackTrace();
      }
    }

    // clean up
    zkClient.unsubscribeChildChanges(extViewPath, listener);
    for (String child : zkClient.getChildren(extViewPath))
    {
      String childPath =
          extViewPath.equals("/") ? extViewPath + child : extViewPath + "/" + child;
      zkClient.unsubscribeDataChanges(childPath, listener);
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.