Class ZooReader
- java.lang.Object
-
- org.apache.accumulo.fate.zookeeper.ZooReader
-
- All Implemented Interfaces:
IZooReader
- Direct Known Subclasses:
ZooReaderWriter
public class ZooReader extends Object implements IZooReader
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists(String zPath)booleanexists(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.RetryFactorygetRetryFactory()protected org.apache.zookeeper.ZooKeepergetSession(String keepers, int timeout, String scheme, byte[] auth)org.apache.zookeeper.data.StatgetStatus(String zPath)org.apache.zookeeper.data.StatgetStatus(String zPath, org.apache.zookeeper.Watcher watcher)protected org.apache.zookeeper.ZooKeepergetZooKeeper()protected voidretryOrThrow(Retry retry, org.apache.zookeeper.KeeperException e)voidsync(String path)
-
-
-
Field Detail
-
keepers
protected String keepers
-
timeout
protected int timeout
-
-
Constructor Detail
-
ZooReader
public ZooReader(String keepers, int timeout)
-
-
Method Detail
-
getSession
protected org.apache.zookeeper.ZooKeeper getSession(String keepers, int timeout, String scheme, byte[] auth)
-
getZooKeeper
protected org.apache.zookeeper.ZooKeeper getZooKeeper()
-
getRetryFactory
protected Retry.RetryFactory getRetryFactory()
-
retryOrThrow
protected void retryOrThrow(Retry retry, org.apache.zookeeper.KeeperException e) throws org.apache.zookeeper.KeeperException
- Throws:
org.apache.zookeeper.KeeperException
-
getData
public byte[] getData(String zPath, org.apache.zookeeper.data.Stat stat) throws org.apache.zookeeper.KeeperException, InterruptedException
- Specified by:
getDatain interfaceIZooReader- Throws:
org.apache.zookeeper.KeeperExceptionInterruptedException
-
getData
public byte[] getData(String zPath, boolean watch, org.apache.zookeeper.data.Stat stat) throws org.apache.zookeeper.KeeperException, InterruptedException
- Specified by:
getDatain interfaceIZooReader- Throws:
org.apache.zookeeper.KeeperExceptionInterruptedException
-
getData
public byte[] getData(String zPath, org.apache.zookeeper.Watcher watcher, org.apache.zookeeper.data.Stat stat) throws org.apache.zookeeper.KeeperException, InterruptedException
- Specified by:
getDatain interfaceIZooReader- Throws:
org.apache.zookeeper.KeeperExceptionInterruptedException
-
getStatus
public org.apache.zookeeper.data.Stat getStatus(String zPath) throws org.apache.zookeeper.KeeperException, InterruptedException
- Specified by:
getStatusin interfaceIZooReader- Throws:
org.apache.zookeeper.KeeperExceptionInterruptedException
-
getStatus
public org.apache.zookeeper.data.Stat getStatus(String zPath, org.apache.zookeeper.Watcher watcher) throws org.apache.zookeeper.KeeperException, InterruptedException
- Specified by:
getStatusin interfaceIZooReader- Throws:
org.apache.zookeeper.KeeperExceptionInterruptedException
-
getChildren
public List<String> getChildren(String zPath) throws org.apache.zookeeper.KeeperException, InterruptedException
- Specified by:
getChildrenin interfaceIZooReader- Throws:
org.apache.zookeeper.KeeperExceptionInterruptedException
-
getChildren
public List<String> getChildren(String zPath, org.apache.zookeeper.Watcher watcher) throws org.apache.zookeeper.KeeperException, InterruptedException
- Specified by:
getChildrenin interfaceIZooReader- Throws:
org.apache.zookeeper.KeeperExceptionInterruptedException
-
exists
public boolean exists(String zPath) throws org.apache.zookeeper.KeeperException, InterruptedException
- Specified by:
existsin interfaceIZooReader- Throws:
org.apache.zookeeper.KeeperExceptionInterruptedException
-
exists
public boolean exists(String zPath, org.apache.zookeeper.Watcher watcher) throws org.apache.zookeeper.KeeperException, InterruptedException
- Specified by:
existsin interfaceIZooReader- Throws:
org.apache.zookeeper.KeeperExceptionInterruptedException
-
sync
public void sync(String path) throws org.apache.zookeeper.KeeperException, InterruptedException
- Specified by:
syncin interfaceIZooReader- Throws:
org.apache.zookeeper.KeeperExceptionInterruptedException
-
getACL
public List<org.apache.zookeeper.data.ACL> getACL(String zPath, org.apache.zookeeper.data.Stat stat) throws org.apache.zookeeper.KeeperException, InterruptedException
- Specified by:
getACLin interfaceIZooReader- Throws:
org.apache.zookeeper.KeeperExceptionInterruptedException
-
-