Package org.I0Itec.zkclient.exception

Examples of org.I0Itec.zkclient.exception.ZkNoNodeException


        }
        _lock.lock();
        try {
            byte[] bs = _data.get(path);
            if (bs == null) {
                throw new ZkNoNodeException(new KeeperException.NoNodeException());
            }
            return bs;
        } finally {
            _lock.unlock();
        }
View Full Code Here


        + ZookeeperConstants.EPHERMAL_PREFIX;
    final String nodeName = zkClient.createEphemeralSequential(ephermalPath, formatData(data));
    final boolean created = zkClient.waitUntilExists(nodeName, TimeUnit.SECONDS,
        nodeCreationTimeoutSeconds);
    if (!created) {
      throw new ZkNoNodeException("Ephemeral node not created after " + nodeCreationTimeoutSeconds
          + " seconds, cannot proceed");
    }
    return createNode(path, nodeName, data);
  }
View Full Code Here

      if (!zkClient.exists(pathPart)) {
        zkClient.createPersistent(pathPart);
        final boolean created = zkClient.waitUntilExists(pathPart, TimeUnit.SECONDS,
            nodeCreationTimeoutSeconds);
        if (!created) {
          throw new ZkNoNodeException("Persistent root node not created after "
              + nodeCreationTimeoutSeconds + " seconds, cannot proceed");
        }
      }
    }
    return new ZNodeImpl(path);
View Full Code Here

        }
        _lock.lock();
        try {
          DataAndVersion dataAndVersion = _data.get(path);
            if (dataAndVersion == null) {
                throw new ZkNoNodeException(new KeeperException.NoNodeException());
            }
            byte[] bs = dataAndVersion.getData();
            if (stat != null)
              stat.setVersion(dataAndVersion.getVersion());
            return bs;
View Full Code Here

        }
        _lock.lock();
        try {
          DataAndVersion dataAndVersion = _data.get(path);
            if (dataAndVersion == null) {
                throw new ZkNoNodeException(new KeeperException.NoNodeException());
            }
            byte[] bs = dataAndVersion.getData();
            if (stat != null)
              stat.setVersion(dataAndVersion.getVersion());
            return bs;
View Full Code Here

        }
        _lock.lock();
        try {
            DataAndVersion dataAndVersion = _data.get(path);
            if (dataAndVersion == null) {
                throw new ZkNoNodeException(new KeeperException.NoNodeException());
            }
            checkACL(path, ZooDefs.Perms.READ);
            byte[] bs = dataAndVersion.getData();
            if (stat != null)
                stat.setVersion(dataAndVersion.getVersion());
View Full Code Here

TOP

Related Classes of org.I0Itec.zkclient.exception.ZkNoNodeException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.