Search in sources :

Example 1 with UnknownException

use of com.navercorp.pinpoint.web.cluster.zookeeper.exception.UnknownException in project pinpoint by naver.

the class ZookeeperClient method getData.

public byte[] getData(String path, boolean watch) throws PinpointZookeeperException, InterruptedException {
    checkState();
    ZooKeeper zookeeper = this.zookeeper;
    try {
        return zookeeper.getData(path, watch, null);
    } catch (KeeperException exception) {
        handleException(exception);
    }
    throw new UnknownException("UnknownException.");
}
Also used : ZooKeeper(org.apache.zookeeper.ZooKeeper) UnknownException(com.navercorp.pinpoint.web.cluster.zookeeper.exception.UnknownException) KeeperException(org.apache.zookeeper.KeeperException)

Aggregations

UnknownException (com.navercorp.pinpoint.web.cluster.zookeeper.exception.UnknownException)1 KeeperException (org.apache.zookeeper.KeeperException)1 ZooKeeper (org.apache.zookeeper.ZooKeeper)1