Package org.apache.zookeeper.server
Class SnapshotFormatter
- java.lang.Object
- 
- org.apache.zookeeper.server.SnapshotFormatter
 
- 
 @Public public class SnapshotFormatter extends Object Dump a snapshot file to stdout. For JSON format, followed https://dev.yorhel.nl/ncdu/jsonfmt
- 
- 
Constructor SummaryConstructors Constructor Description SnapshotFormatter()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)USAGE: SnapshotFormatter snapshot_file or the ready-made script: zkSnapShotToolkit.shvoidrun(String snapshotFileName, boolean dumpData, boolean dumpJson)
 
- 
- 
- 
Method Detail- 
mainpublic static void main(String[] args) throws Exception USAGE: SnapshotFormatter snapshot_file or the ready-made script: zkSnapShotToolkit.sh- Throws:
- Exception
 
 - 
runpublic void run(String snapshotFileName, boolean dumpData, boolean dumpJson) throws IOException - Throws:
- IOException
 
 
- 
 
-