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 classZooSession.ZooSessionShutdownException
-
Constructor Summary
Constructors Constructor Description ZooSession()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.zookeeper.ZooKeeperconnect(String host, int timeout, String scheme, byte[] auth, org.apache.zookeeper.Watcher watcher)static org.apache.zookeeper.ZooKeepergetAnonymousSession(String zooKeepers, int timeout)static org.apache.zookeeper.ZooKeepergetAuthenticatedSession(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
-
getAuthenticatedSession
public static org.apache.zookeeper.ZooKeeper getAuthenticatedSession(String zooKeepers, int timeout, String scheme, byte[] auth)
-
getAnonymousSession
public static org.apache.zookeeper.ZooKeeper getAnonymousSession(String zooKeepers, int timeout)
-
-