Пример #1
0
 public LilyClient(ZooKeeperItf zk)
     throws IOException, InterruptedException, KeeperException, ZkConnectException,
         NoServersException, RepositoryException {
   this.zk = zk;
   schemaCache = new RemoteSchemaCache(zk, this);
   init();
 }
Пример #2
0
 /**
  * @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();
 }