/**
   * Zoo的新建目录
   *
   * @param dir
   */
  public void makeDir(String dir, String data) {

    try {

      boolean deafult_path_exist = store.exists(dir);
      if (!deafult_path_exist) {
        LOGGER.info("create: " + dir);
        this.writePersistentUrl(dir, data);
      } else {
      }

    } catch (KeeperException e) {

      LOGGER.error("cannot create path: " + dir, e);

    } catch (Exception e) {

      LOGGER.error("cannot create path: " + dir, e);
    }
  }
  /*
   * 路径是否存在
   */
  public boolean exists(String path) throws Exception {

    return store.exists(path);
  }