public class ZKTree extends Object
| Constructor and Description |
|---|
ZKTree(ZKClient zk)
Create a ZKTree instance for traversal and query execution.
|
| Modifier and Type | Method and Description |
|---|---|
String |
colorCodeExplanation()
Return color code explanation for command line output.
|
void |
queryFind(String rootPath,
List<ZKQueryElement> queryElements,
Hashtable<Integer,List<String>> queriesOutput)
Function to return a list of the selected sub-tree with the full path of
query matching nodes.
|
void |
queryTree(String rootPath,
List<ZKQueryElement> queryElements,
Hashtable<Integer,List<String>> queriesOutput)
Function to return a tree view of the selected sub-tree and execute queries.
|
public ZKTree(ZKClient zk)
zk - A ZooKeeper instance that provides access to the ZNode treepublic void queryTree(String rootPath, List<ZKQueryElement> queryElements, Hashtable<Integer,List<String>> queriesOutput) throws org.apache.zookeeper.KeeperException, InterruptedException, NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchFieldException
rootPath - Path to start recursive query execution fromqueryElements - List of queries to be executed on each nodequeriesOutput - Output buffers for each queryorg.apache.zookeeper.KeeperExceptionInterruptedExceptionSecurityExceptionNoSuchMethodExceptionInvocationTargetExceptionIllegalArgumentExceptionIllegalAccessExceptionNoSuchFieldExceptionpublic void queryFind(String rootPath, List<ZKQueryElement> queryElements, Hashtable<Integer,List<String>> queriesOutput) throws org.apache.zookeeper.KeeperException, InterruptedException, NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchFieldException
rootPath - Path to start recursive query execution fromqueryElements - List of queries to be executed on each nodequeriesOutput - Output buffers for each queryorg.apache.zookeeper.KeeperExceptionInterruptedExceptionSecurityExceptionNoSuchMethodExceptionInvocationTargetExceptionIllegalArgumentExceptionIllegalAccessExceptionNoSuchFieldExceptionpublic String colorCodeExplanation()
Copyright © 2020. All rights reserved.