Package org.apache.zookeeper.server
Class SnapshotRecursiveSummary
- java.lang.Object
 - 
- org.apache.zookeeper.server.SnapshotRecursiveSummary
 
 
- 
@Public public class SnapshotRecursiveSummary extends Object
Recursively processes a snapshot file collecting child node count and summarizes the data size below each node. "starting_node" defines the node where the recursion starts "max_depth" defines the depth where the tool still writes to the output. 0 means there is no depth limit, every non-leaf node's stats will be displayed, 1 means it will only contain the starting node's and it's children's stats, 2 ads another level and so on. This ONLY affects the level of details displayed, NOT the calculation. 
- 
- 
Constructor Summary
Constructors Constructor Description SnapshotRecursiveSummary() 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringgetUsage()static voidmain(String[] args)USAGE: SnapsotRecursiveSummary snapshot_file starting_node max_depthvoidrun(String snapshotFileName, String startingNode, int maxDepth) 
 - 
 
- 
- 
Method Detail
- 
main
public static void main(String[] args) throws Exception
USAGE: SnapsotRecursiveSummary snapshot_file starting_node max_depth- Throws:
 Exception
 
- 
run
public void run(String snapshotFileName, String startingNode, int maxDepth) throws IOException
- Throws:
 IOException
 
- 
getUsage
public static String getUsage()
 
 - 
 
 -