Examples of waitForSuccess()


Examples of com.linkedin.helix.manager.zk.ZkAsyncCallbacks.SetDataCallbackHandler.waitForSuccess()

        boolean failOnNoNode = false;

        for (int i = 0; i < cbList.length; i++)
        {
          SetDataCallbackHandler cb = cbList[i];
          cb.waitForSuccess();
          Code rc = Code.get(cb.getRc());
          switch (rc)
          {
          case OK:
            setStats.set(i, cb.getStat());
View Full Code Here

Examples of com.linkedin.helix.manager.zk.ZkAsyncCallbacks.SetDataCallbackHandler.waitForSuccess()

        {
          SetDataCallbackHandler cb = cbList[i];
          if (cb == null)
            continue;

          cb.waitForSuccess();

          switch (Code.get(cb.getRc()))
          {
          case OK:
            updateData.set(i, newDataList.get(i));
View Full Code Here

Examples of org.apache.helix.manager.zk.ZkAsyncCallbacks.CreateCallbackHandler.waitForSuccess()

      {
        if (!needCreate[i])
          continue;

        CreateCallbackHandler cb = cbList[i];
        cb.waitForSuccess();
        String path = paths.get(i);

        if (Code.get(cb.getRc()) == Code.NONODE)
        {
          String parentPath = new File(path).getParent();
View Full Code Here

Examples of org.apache.helix.manager.zk.ZkAsyncCallbacks.CreateCallbackHandler.waitForSuccess()

      for (int i = 0; i < paths.size(); i++) {
        if (!needCreate[i])
          continue;

        CreateCallbackHandler cb = cbList[i];
        cb.waitForSuccess();
        String path = paths.get(i);

        if (Code.get(cb.getRc()) == Code.NONODE) {
          String parentPath = HelixUtil.getZkParentPath(path);
          parentPaths.set(i, parentPath);
View Full Code Here

Examples of org.apache.helix.manager.zk.ZkAsyncCallbacks.CreateCallbackHandler.waitForSuccess()

      for (int i = 0; i < paths.size(); i++) {
        if (!needCreate[i])
          continue;

        CreateCallbackHandler cb = cbList[i];
        cb.waitForSuccess();
        String path = paths.get(i);

        if (Code.get(cb.getRc()) == Code.NONODE) {
          String parentPath = HelixUtil.getZkParentPath(path);
          parentPaths.set(i, parentPath);
View Full Code Here

Examples of org.apache.helix.manager.zk.ZkAsyncCallbacks.CreateCallbackHandler.waitForSuccess()

        if (!needCreate[i]) {
          continue;
        }

        CreateCallbackHandler cb = cbList[i];
        cb.waitForSuccess();
        String path = paths.get(i);

        Code code = Code.get(cb.getRc());
        switch (code) {
        case NONODE: {
View Full Code Here

Examples of org.apache.helix.manager.zk.ZkAsyncCallbacks.CreateCallbackHandler.waitForSuccess()

        if (!needCreate[i]) {
          continue;
        }

        CreateCallbackHandler cb = cbList[i];
        cb.waitForSuccess();
        String path = paths.get(i);

        Code code = Code.get(cb.getRc());
        switch (code) {
        case NONODE: {
View Full Code Here

Examples of org.apache.helix.manager.zk.ZkAsyncCallbacks.CreateCallbackHandler.waitForSuccess()

      {
        if (!needCreate[i])
          continue;

        CreateCallbackHandler cb = cbList[i];
        cb.waitForSuccess();
        String path = paths.get(i);

        if (Code.get(cb.getRc()) == Code.NONODE)
        {
          String parentPath = HelixUtil.getZkParentPath(path);
View Full Code Here

Examples of org.apache.helix.manager.zk.ZkAsyncCallbacks.DeleteCallbackHandler.waitForSuccess()

      }

      for (int i = 0; i < cbList.length; i++)
      {
        DeleteCallbackHandler cb = cbList[i];
        cb.waitForSuccess();
        success[i] = (cb.getRc() == 0);
      }

      return success;
    }
View Full Code Here

Examples of org.apache.helix.manager.zk.ZkAsyncCallbacks.DeleteCallbackHandler.waitForSuccess()

        _zkClient.asyncDelete(path, cbList[i]);
      }

      for (int i = 0; i < cbList.length; i++) {
        DeleteCallbackHandler cb = cbList[i];
        cb.waitForSuccess();
        success[i] = (cb.getRc() == 0);
      }

      return success;
    } finally {
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.