Class ZooCacheFactory
- java.lang.Object
-
- org.apache.accumulo.fate.zookeeper.ZooCacheFactory
-
-
Constructor Summary
Constructors Constructor Description ZooCacheFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZooCachegetZooCache(String zooKeepers, int sessionTimeout)Gets aZooCache.ZooCachegetZooCache(String zooKeepers, int sessionTimeout, org.apache.zookeeper.Watcher watcher)Gets a watchedZooCache.
-
-
-
Method Detail
-
getZooCache
public ZooCache getZooCache(String zooKeepers, int sessionTimeout)
Gets aZooCache. The same object may be returned for multiple calls with the same arguments.- Parameters:
zooKeepers- comma-separated list of ZooKeeper host[:port]ssessionTimeout- session timeout- Returns:
- cache object
-
getZooCache
public ZooCache getZooCache(String zooKeepers, int sessionTimeout, org.apache.zookeeper.Watcher watcher)
Gets a watchedZooCache. If the watcher is null, then the same (unwatched) object may be returned for multiple calls with the same remaining arguments.- Parameters:
zooKeepers- comma-separated list of ZooKeeper host[:port]ssessionTimeout- session timeoutwatcher- watcher (optional)- Returns:
- cache object
-
-