|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.curator.utils.DefaultZookeeperFactory
public class DefaultZookeeperFactory
| Constructor Summary | |
|---|---|
DefaultZookeeperFactory()
|
|
| Method Summary | |
|---|---|
org.apache.zookeeper.ZooKeeper |
newZooKeeper(java.lang.String connectString,
int sessionTimeout,
org.apache.zookeeper.Watcher watcher,
boolean canBeReadOnly)
Allocate a new ZooKeeper instance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultZookeeperFactory()
| Method Detail |
|---|
public org.apache.zookeeper.ZooKeeper newZooKeeper(java.lang.String connectString,
int sessionTimeout,
org.apache.zookeeper.Watcher watcher,
boolean canBeReadOnly)
throws java.lang.Exception
ZookeeperFactory
newZooKeeper in interface ZookeeperFactoryconnectString - 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
java.lang.Exception - errors
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||