Class TxnLogToolkit

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class TxnLogToolkit
    extends java.lang.Object
    implements java.io.Closeable
    • Constructor Summary

      Constructors 
      Constructor Description
      TxnLogToolkit​(boolean recoveryMode, boolean verbose, java.lang.String txnLogFileName, boolean force)  
      TxnLogToolkit​(java.lang.String txnLogFileName, java.lang.String zxidName)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void chop()  
      void close()  
      void dump​(java.util.Scanner scanner)  
      boolean isDumpMode()  
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

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

      • TxnLogToolkit

        public TxnLogToolkit​(boolean recoveryMode,
                             boolean verbose,
                             java.lang.String txnLogFileName,
                             boolean force)
                      throws java.io.FileNotFoundException,
                             org.apache.zookeeper.server.persistence.TxnLogToolkit.TxnLogToolkitException
        Throws:
        java.io.FileNotFoundException
        org.apache.zookeeper.server.persistence.TxnLogToolkit.TxnLogToolkitException
      • TxnLogToolkit

        public TxnLogToolkit​(java.lang.String txnLogFileName,
                             java.lang.String zxidName)
                      throws org.apache.zookeeper.server.persistence.TxnLogToolkit.TxnLogToolkitException
        Throws:
        org.apache.zookeeper.server.persistence.TxnLogToolkit.TxnLogToolkitException
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Parameters:
        args - Command line arguments
        Throws:
        java.lang.Exception
      • dump

        public void dump​(java.util.Scanner scanner)
                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • chop

        public void chop()
      • isDumpMode

        public boolean isDumpMode()
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException