Search in sources :

Example 1 with UnknownException

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

the class DefaultZookeeperClient method getData.

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

Aggregations

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