public class ZooSession extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ZooSession.ZooSessionShutdownException |
Constructor and Description |
---|
ZooSession() |
Modifier and Type | Method and 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) |
static void |
shutdown() |
public static org.apache.zookeeper.ZooKeeper connect(String host, int timeout, String scheme, byte[] auth, org.apache.zookeeper.Watcher watcher)
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 nullpublic static org.apache.zookeeper.ZooKeeper getSession(String zooKeepers, int timeout, String scheme, byte[] auth)
public static void shutdown()
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.