Examples of unsubscribeDataChanges()


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

        Assert.assertNotNull(childWatch, "ZooKeeper#watchManager#childWatches should have 1 child watch on path: " + path);
        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
View Full Code Here

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

    zkClient.unsubscribeChildChanges(extViewPath, listener);
    for (String child : zkClient.getChildren(extViewPath))
    {
      String childPath =
          extViewPath.equals("/") ? extViewPath + child : extViewPath + "/" + child;
      zkClient.unsubscribeDataChanges(childPath, listener);
    }

    long endTime = System.currentTimeMillis();

    zkClient.delete("/" + clusterName + "/CONFIGS/CLUSTER/verify");
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.