1109111011111112111311141115111611171118
getEventLock().lock(); try { _connection.close(); _connection.connect(this); } catch (InterruptedException e) { throw new ZkInterruptedException(e); } finally { getEventLock().unlock(); } }
135136137138139140141142
_nioFactory = new NIOServerCnxn.Factory(new InetSocketAddress(port)); _nioFactory.startup(_zk); } catch (IOException e) { throw new ZkException("Unable to start single ZooKeeper server.", e); } catch (InterruptedException e) { throw new ZkInterruptedException(e); } }
121122123124125126127128
create("/", null, CreateMode.PERSISTENT); } catch (KeeperException e) { throw ZkException.create(e); } catch (InterruptedException e) { Thread.currentThread().interrupt(); throw new ZkInterruptedException(e); } }
591592593594595596597598599600
return false; } } return true; } catch (InterruptedException e) { throw new ZkInterruptedException(e); } finally { getEventLock().unlock(); } }
128129130131132133134135