899900901902903904905906907908
getEventLock().lockInterruptibly(); return _connection.getCreateTime(path); } catch (KeeperException e) { throw ZkException.create(e); } catch (InterruptedException e) { throw new ZkInterruptedException(e); } finally { getEventLock().unlock(); } }
923924925926927928929930931932933
_eventThread.interrupt(); _eventThread.join(2000); _connection.close(); _connection = null; } catch (InterruptedException e) { throw new ZkInterruptedException(e); } finally { getEventLock().unlock(); } LOG.debug("Closing ZkClient...done"); }
936937938939940941942943944945
getEventLock().lock(); try { _connection.close(); _connection.connect(this); } catch (InterruptedException e) { throw new ZkInterruptedException(e); } finally { getEventLock().unlock(); } }
979899100101102103104
create("/", null, CreateMode.PERSISTENT); } catch (KeeperException e) { throw ZkException.create(e); } catch (InterruptedException e) { Thread.currentThread().interrupt(); throw new ZkInterruptedException(e); } }
747748749750751752753754755756
return false; } } return true; } catch (InterruptedException e) { throw new ZkInterruptedException(e); } finally { getEventLock().unlock(); } }
792793794795796797798799800801
stillWaiting = getEventLock().getStateChangedCondition().awaitUntil(timeout); } LOG.debug("State is " + _currentState); return true; } catch (InterruptedException e) { throw new ZkInterruptedException(e); } finally { getEventLock().unlock(); } }
802803804805806807808809
private void acquireEventLock() { try { getEventLock().lockInterruptibly(); } catch (InterruptedException e) { throw new ZkInterruptedException(e); } }
838839840841842843844845846847848
Thread.yield(); waitUntilConnected(); } catch (KeeperException e) { throw ZkException.create(e); } catch (InterruptedException e) { throw new ZkInterruptedException(e); } catch (Exception e) { throw ExceptionUtil.convertToRuntimeException(e); } } }
1072107310741075107610771078107910801081
10961097109810991100110111021103110411051106