Class ZooSession
- java.lang.Object
-
- org.apache.accumulo.fate.zookeeper.ZooSession
-
public class ZooSession extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ZooSession.ZooSessionShutdownException
-
Constructor Summary
Constructors Constructor Description ZooSession()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.zookeeper.ZooKeeper
connect(String host, int timeout, String scheme, byte[] auth, org.apache.zookeeper.Watcher watcher)
static org.apache.zookeeper.ZooKeeper
getSession(String zooKeepers, int timeout, String scheme, byte[] auth)
-
-
-
Method Detail
-
connect
public static org.apache.zookeeper.ZooKeeper connect(String host, int timeout, String scheme, byte[] auth, org.apache.zookeeper.Watcher watcher)
- Parameters:
host
- comma separated list of zk serverstimeout
- in millisecondsscheme
- authentication type, e.g. 'digest', may be nullauth
- authentication-scheme-specific token, may be nullwatcher
- ZK notifications, may be null
-
-