Class NodesCache
java.lang.Object
org.apache.zookeeper.inspector.manager.NodesCache
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetChildren
(String nodePath) Fetch the children of the given node from the cache.
-
Field Details
-
CACHE_SIZE
public static final int CACHE_SIZE- See Also:
-
ENTRY_EXPIRATION_TIME_MILLIS
public static final int ENTRY_EXPIRATION_TIME_MILLIS- See Also:
-
-
Constructor Details
-
NodesCache
-
-
Method Details
-
getChildren
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.
-