|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ZookeeperFactory
| Method Summary | |
|---|---|
org.apache.zookeeper.ZooKeeper |
newZooKeeper(String connectString,
int sessionTimeout,
org.apache.zookeeper.Watcher watcher,
boolean canBeReadOnly)
Allocate a new ZooKeeper instance |
| Method Detail |
|---|
org.apache.zookeeper.ZooKeeper newZooKeeper(String connectString,
int sessionTimeout,
org.apache.zookeeper.Watcher watcher,
boolean canBeReadOnly)
throws Exception
connectString - the connection stringsessionTimeout - session timeout in millisecondswatcher - optional watchercanBeReadOnly - if true, allow ZooKeeper client to enter
read only mode in case of a network partition. See
ZooKeeper.ZooKeeper(String, int, Watcher, long, byte[], boolean)
for details
Exception - errors
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||