Examples of ZkGenericPath


Examples of com.facebook.zookeeper.path.ZkGenericPath

    this(new ZkQuickConnectionManager());
  }

  public void dump(String pathStr, int depth, boolean detailed)
    throws InterruptedException, KeeperException {
    ZkGenericPath path = new ZkGenericPath(pathStr);
    dump(path, depth, detailed);
  }
View Full Code Here

Examples of com.facebook.zookeeper.path.ZkGenericPath

  }

  public void prunePersistent(
    String pathStr, String keyword, List<String> toKeep
  ) throws InterruptedException, KeeperException {
    ZkGenericPath path = new ZkGenericPath(pathStr);
    Set<String> keepSet = expandToKeepSet(toKeep);
    internalPrunePersistent(path, keyword, keepSet);
  }
View Full Code Here

Examples of com.facebook.zookeeper.path.ZkGenericPath

  private Set<String> expandToKeepSet(List<String> toKeep) {
    // Add all listed ZNodes as well as all of their ancestors
    Set<String> keepSet = new HashSet<String>();
    for (String pathStr : toKeep) {
      ZkGenericPath path = ZkGenericPath.parse("/", pathStr);
      Iterator<ZkGenericPath> lineageIter = path.lineageIterator();
      while(lineageIter.hasNext()) {
        keepSet.add(lineageIter.next().toString());
      }
    }
    return keepSet;
View Full Code Here

Examples of com.facebook.zookeeper.path.ZkGenericPath

    }
  }

  private void createEntirePath(String pathStr)
    throws InterruptedException, KeeperException {
    ZkGenericPath path = ZkGenericPath.parse("/", pathStr);
    Iterator<ZkGenericPath> lineageIter = path.lineageIterator();
    while (lineageIter.hasNext()) {
      String currentPathStr = lineageIter.next().toString();
      try {
        getZk().create(
          currentPathStr,
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.