org.apache.accumulo.core.zookeeper
Class ZooReader

java.lang.Object
  extended by org.apache.accumulo.core.zookeeper.ZooReader
All Implemented Interfaces:
IZooReader

public class ZooReader
extends Object
implements IZooReader


Field Summary
protected  String keepers
           
protected  int timeout
           
 
Constructor Summary
ZooReader(Instance instance)
           
ZooReader(String keepers, int timeout)
           
 
Method Summary
 boolean exists(String zPath)
           
 boolean exists(String zPath, org.apache.zookeeper.Watcher watcher)
           
 List<String> getChildren(String zPath)
           
 List<String> getChildren(String zPath, org.apache.zookeeper.Watcher watcher)
           
 byte[] getData(String zPath, org.apache.zookeeper.data.Stat stat)
           
protected  org.apache.zookeeper.ZooKeeper getSession(String keepers, int timeout, String 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()
           
 void sync(String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keepers

protected String keepers

timeout

protected int timeout
Constructor Detail

ZooReader

public ZooReader(String keepers,
                 int timeout)

ZooReader

public ZooReader(Instance instance)
Method Detail

getSession

protected org.apache.zookeeper.ZooKeeper getSession(String keepers,
                                                    int timeout,
                                                    String auth)

getZooKeeper

protected org.apache.zookeeper.ZooKeeper getZooKeeper()

getData

public byte[] getData(String zPath,
                      org.apache.zookeeper.data.Stat stat)
               throws org.apache.zookeeper.KeeperException,
                      InterruptedException
Specified by:
getData in interface IZooReader
Throws:
org.apache.zookeeper.KeeperException
InterruptedException

getStatus

public org.apache.zookeeper.data.Stat getStatus(String zPath)
                                         throws org.apache.zookeeper.KeeperException,
                                                InterruptedException
Specified by:
getStatus in interface IZooReader
Throws:
org.apache.zookeeper.KeeperException
InterruptedException

getStatus

public org.apache.zookeeper.data.Stat getStatus(String zPath,
                                                org.apache.zookeeper.Watcher watcher)
                                         throws org.apache.zookeeper.KeeperException,
                                                InterruptedException
Specified by:
getStatus in interface IZooReader
Throws:
org.apache.zookeeper.KeeperException
InterruptedException

getChildren

public List<String> getChildren(String zPath)
                         throws org.apache.zookeeper.KeeperException,
                                InterruptedException
Specified by:
getChildren in interface IZooReader
Throws:
org.apache.zookeeper.KeeperException
InterruptedException

getChildren

public List<String> getChildren(String zPath,
                                org.apache.zookeeper.Watcher watcher)
                         throws org.apache.zookeeper.KeeperException,
                                InterruptedException
Specified by:
getChildren in interface IZooReader
Throws:
org.apache.zookeeper.KeeperException
InterruptedException

exists

public boolean exists(String zPath)
               throws org.apache.zookeeper.KeeperException,
                      InterruptedException
Specified by:
exists in interface IZooReader
Throws:
org.apache.zookeeper.KeeperException
InterruptedException

exists

public boolean exists(String zPath,
                      org.apache.zookeeper.Watcher watcher)
               throws org.apache.zookeeper.KeeperException,
                      InterruptedException
Specified by:
exists in interface IZooReader
Throws:
org.apache.zookeeper.KeeperException
InterruptedException

sync

public void sync(String path)
          throws org.apache.zookeeper.KeeperException,
                 InterruptedException
Specified by:
sync in interface IZooReader
Throws:
org.apache.zookeeper.KeeperException
InterruptedException


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.