Class TxnLogToolkit
- java.lang.Object
-
- org.apache.zookeeper.server.persistence.TxnLogToolkit
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class TxnLogToolkit extends Object implements Closeable
-
-
Constructor Summary
Constructors Constructor Description TxnLogToolkit(boolean recoveryMode, boolean verbose, String txnLogFileName, boolean force)
TxnLogToolkit(String txnLogFileName, String zxidName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
chop()
void
close()
void
dump(Scanner scanner)
boolean
isDumpMode()
static void
main(String[] args)
-
-
-
Constructor Detail
-
TxnLogToolkit
public TxnLogToolkit(boolean recoveryMode, boolean verbose, String txnLogFileName, boolean force) throws FileNotFoundException, org.apache.zookeeper.server.persistence.TxnLogToolkit.TxnLogToolkitException
-
TxnLogToolkit
public TxnLogToolkit(String txnLogFileName, String zxidName) throws org.apache.zookeeper.server.persistence.TxnLogToolkit.TxnLogToolkitException
-
-
Method Detail
-
main
public static void main(String[] args) throws Exception
- Parameters:
args
- Command line arguments- Throws:
Exception
-
chop
public void chop()
-
isDumpMode
public boolean isDumpMode()
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-