Class NodesCache

java.lang.Object
org.apache.zookeeper.inspector.manager.NodesCache

public class NodesCache extends Object
A local cache of ZNodes in front of the Zookeeper server(s) to help cut down on network calls. This class will return results from the cache first, if available, and then fetch results remotely from Zookeeper if not.
  • Field Details

  • Constructor Details

    • NodesCache

      public NodesCache(ZooKeeper zooKeeper)
  • Method Details

    • getChildren

      public List<String> getChildren(String nodePath)
      Fetch the children of the given node from the cache.
      Parameters:
      nodePath - The full path to the parent whose children are to be fetched.
      Returns:
      The list of children of the given node as a list of full ZNode path strings or null if an error occurred.