public void connect(String host, ZooWatcher watcher) // ZooKeeper { zk = new ZooKeeper(host, System.TimeSpan.FromSeconds(3000), watcher); }
public Zoo(String conn, ZooWatcher watcher) { this.zk_hosts = conn; this.doWatch = true; this.connect(this.zk_hosts, watcher); }