org.apache.accumulo.fate.zookeeper
Class ZooSession
java.lang.Object
org.apache.accumulo.fate.zookeeper.ZooSession
public class ZooSession
- extends Object
|
Method Summary |
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)
|
static org.apache.zookeeper.ZooKeeper |
getSession(String zooKeepers,
int timeout,
String scheme,
byte[] auth)
|
static void |
shutdown()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZooSession
public ZooSession()
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
getSession
public static org.apache.zookeeper.ZooKeeper getSession(String zooKeepers,
int timeout)
getSession
public static org.apache.zookeeper.ZooKeeper getSession(String zooKeepers,
int timeout,
String scheme,
byte[] auth)
shutdown
public static void shutdown()
Copyright © 2015 Apache Accumulo Project. All rights reserved.