public LilyClient(ZooKeeperItf zk) throws IOException, InterruptedException, KeeperException, ZkConnectException, NoServersException, RepositoryException { this.zk = zk; schemaCache = new RemoteSchemaCache(zk, this); init(); }
/** * @throws NoServersException if the znode under which the repositories are published does not * exist */ public LilyClient(String zookeeperConnectString, int sessionTimeout) throws IOException, InterruptedException, KeeperException, ZkConnectException, NoServersException, RepositoryException { managedZk = true; zk = ZkUtil.connect(zookeeperConnectString, sessionTimeout); schemaCache = new RemoteSchemaCache(zk, this); init(); }