Class SnapshotFormatter


  • @Public
    public class SnapshotFormatter
    extends java.lang.Object
    Dump a snapshot file to stdout. For JSON format, followed https://dev.yorhel.nl/ncdu/jsonfmt
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      USAGE: SnapshotFormatter snapshot_file or the ready-made script: zkSnapShotToolkit.sh
      void run​(java.lang.String snapshotFileName, boolean dumpData, boolean dumpJson)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SnapshotFormatter

        public SnapshotFormatter()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        USAGE: SnapshotFormatter snapshot_file or the ready-made script: zkSnapShotToolkit.sh
        Throws:
        java.lang.Exception
      • run

        public void run​(java.lang.String snapshotFileName,
                        boolean dumpData,
                        boolean dumpJson)
                 throws java.io.IOException
        Throws:
        java.io.IOException