org.apache.accumulo.fate.zookeeper
Class ZooSession

java.lang.Object
  extended by org.apache.accumulo.fate.zookeeper.ZooSession

public class ZooSession
extends Object


Nested Class Summary
static class ZooSession.ZooSessionShutdownException
           
 
Constructor Summary
ZooSession()
           
 
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
 

Constructor Detail

ZooSession

public ZooSession()
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 servers
timeout - in milliseconds
scheme - authentication type, e.g. 'digest', may be null
auth - authentication-scheme-specific token, may be null
watcher - 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.