Exemplo n.º 1
0
  /**
   * @Description: 带状态信息的读取数据
   *
   * @param path
   * @param watcher
   * @param stat
   * @return
   * @throws InterruptedException
   * @throws KeeperException
   * @return String
   * @author liaoqiqi
   * @date 2013-6-17
   */
  public String read(String path, Watcher watcher, Stat stat)
      throws InterruptedException, KeeperException {

    return store.read(path, watcher, stat);
  }
Exemplo n.º 2
0
  /**
   * @Description: 读结点数据
   *
   * @return
   * @return List<String>
   * @author liaoqiqi
   * @date 2013-6-14
   */
  public String readUrl(String url, Watcher watcher) throws Exception {

    return store.read(url, watcher, null);
  }