Example usage for org.apache.zookeeper KeeperException.NoNodeException getPath

List of usage examples for org.apache.zookeeper KeeperException.NoNodeException getPath

Introduction

In this page you can find the example usage for org.apache.zookeeper KeeperException.NoNodeException getPath.

Prototype

public String getPath() 

Source Link

Document

Read the path for this exception

Usage

From source file:com.yahoo.pulsar.zookeeper.ZooKeeperChildrenCache.java

License:Apache License

@Override
public void reloadCache(final String path) {
    try {/* ww  w .  ja v a 2s .co  m*/
        cache.invalidate(path);
        Set<String> children = cache.getChildren(path, this);
        LOG.info("reloadCache called in zookeeperChildrenCache for path {}", path);
        for (ZooKeeperCacheListener<Set<String>> listener : listeners) {
            listener.onUpdate(path, children, null);
        }
    } catch (KeeperException.NoNodeException nne) {
        LOG.debug("Node [{}] does not exist", nne.getPath());
    } catch (Exception e) {
        LOG.warn("Reloading ZooKeeperDataCache failed at path:{}", path);
    }
}