public class ZooReader extends Object implements IZooReader
Modifier and Type | Field and Description |
---|---|
protected String |
keepers |
protected int |
timeout |
Modifier and Type | Method and Description |
---|---|
boolean |
exists(String zPath) |
boolean |
exists(String zPath,
org.apache.zookeeper.Watcher watcher) |
List<org.apache.zookeeper.data.ACL> |
getACL(String zPath,
org.apache.zookeeper.data.Stat stat) |
List<String> |
getChildren(String zPath) |
List<String> |
getChildren(String zPath,
org.apache.zookeeper.Watcher watcher) |
byte[] |
getData(String zPath,
boolean watch,
org.apache.zookeeper.data.Stat stat) |
byte[] |
getData(String zPath,
org.apache.zookeeper.data.Stat stat) |
byte[] |
getData(String zPath,
org.apache.zookeeper.Watcher watcher,
org.apache.zookeeper.data.Stat stat) |
protected Retry.RetryFactory |
getRetryFactory() |
protected org.apache.zookeeper.ZooKeeper |
getSession(String keepers,
int timeout,
String scheme,
byte[] auth) |
org.apache.zookeeper.data.Stat |
getStatus(String zPath) |
org.apache.zookeeper.data.Stat |
getStatus(String zPath,
org.apache.zookeeper.Watcher watcher) |
protected org.apache.zookeeper.ZooKeeper |
getZooKeeper() |
protected void |
retryOrThrow(Retry retry,
org.apache.zookeeper.KeeperException e) |
void |
sync(String path) |
protected String keepers
protected int timeout
public ZooReader(String keepers, int timeout)
protected org.apache.zookeeper.ZooKeeper getSession(String keepers, int timeout, String scheme, byte[] auth)
protected org.apache.zookeeper.ZooKeeper getZooKeeper()
protected Retry.RetryFactory getRetryFactory()
protected void retryOrThrow(Retry retry, org.apache.zookeeper.KeeperException e) throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperException
public byte[] getData(String zPath, org.apache.zookeeper.data.Stat stat) throws org.apache.zookeeper.KeeperException, InterruptedException
getData
in interface IZooReader
org.apache.zookeeper.KeeperException
InterruptedException
public byte[] getData(String zPath, boolean watch, org.apache.zookeeper.data.Stat stat) throws org.apache.zookeeper.KeeperException, InterruptedException
getData
in interface IZooReader
org.apache.zookeeper.KeeperException
InterruptedException
public byte[] getData(String zPath, org.apache.zookeeper.Watcher watcher, org.apache.zookeeper.data.Stat stat) throws org.apache.zookeeper.KeeperException, InterruptedException
getData
in interface IZooReader
org.apache.zookeeper.KeeperException
InterruptedException
public org.apache.zookeeper.data.Stat getStatus(String zPath) throws org.apache.zookeeper.KeeperException, InterruptedException
getStatus
in interface IZooReader
org.apache.zookeeper.KeeperException
InterruptedException
public org.apache.zookeeper.data.Stat getStatus(String zPath, org.apache.zookeeper.Watcher watcher) throws org.apache.zookeeper.KeeperException, InterruptedException
getStatus
in interface IZooReader
org.apache.zookeeper.KeeperException
InterruptedException
public List<String> getChildren(String zPath) throws org.apache.zookeeper.KeeperException, InterruptedException
getChildren
in interface IZooReader
org.apache.zookeeper.KeeperException
InterruptedException
public List<String> getChildren(String zPath, org.apache.zookeeper.Watcher watcher) throws org.apache.zookeeper.KeeperException, InterruptedException
getChildren
in interface IZooReader
org.apache.zookeeper.KeeperException
InterruptedException
public boolean exists(String zPath) throws org.apache.zookeeper.KeeperException, InterruptedException
exists
in interface IZooReader
org.apache.zookeeper.KeeperException
InterruptedException
public boolean exists(String zPath, org.apache.zookeeper.Watcher watcher) throws org.apache.zookeeper.KeeperException, InterruptedException
exists
in interface IZooReader
org.apache.zookeeper.KeeperException
InterruptedException
public void sync(String path) throws org.apache.zookeeper.KeeperException, InterruptedException
sync
in interface IZooReader
org.apache.zookeeper.KeeperException
InterruptedException
public List<org.apache.zookeeper.data.ACL> getACL(String zPath, org.apache.zookeeper.data.Stat stat) throws org.apache.zookeeper.KeeperException, InterruptedException
getACL
in interface IZooReader
org.apache.zookeeper.KeeperException
InterruptedException
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.