Class ZooSession

  • public class ZooSession
    extends Object
    • 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)
        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,
                                                                String scheme,
                                                                byte[] auth)