org.apache.accumulo.core.zookeeper
Class ZooCache
java.lang.Object
org.apache.accumulo.core.zookeeper.ZooCache
public class ZooCache
- extends Object
Caches values stored in zookeeper and keeps them up to date as they change in zookeeper.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZooCache
public ZooCache(String zooKeepers,
int sessionTimeout)
ZooCache
public ZooCache(String zooKeepers,
int sessionTimeout,
org.apache.zookeeper.Watcher watcher)
ZooCache
public ZooCache(ZooReader reader,
org.apache.zookeeper.Watcher watcher)
getChildren
public List<String> getChildren(String zPath)
get
public byte[] get(String zPath)
get
public byte[] get(String zPath,
org.apache.zookeeper.data.Stat stat)
clear
public void clear()
clear
public void clear(String zPath)
getInstance
public static ZooCache getInstance(String zooKeepers,
int sessionTimeout)
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.