Berkeley DB Java Edition
version 5.0.34

com.sleepycat.je.util
Class DbPrintLog

java.lang.Object
  extended by com.sleepycat.je.util.DbPrintLog

public class DbPrintLog
extends Object

Dumps the contents of the log in XML format to System.out.

To print an environment log:

      DbPrintLog.main(argv);
 


Constructor Summary
DbPrintLog()
           
 
Method Summary
 void dump(File envHome, String entryTypes, String txnIds, long startLsn, long endLsn, boolean verbose, boolean stats, boolean repEntriesOnly, boolean csvFormat, boolean forwards, String customDumpReaderClass)
          Dump a JE log into human readable form.
static void main(String[] argv)
          The main used by the DbPrintLog utility.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbPrintLog

public DbPrintLog()
Method Detail

dump

public void dump(File envHome,
                 String entryTypes,
                 String txnIds,
                 long startLsn,
                 long endLsn,
                 boolean verbose,
                 boolean stats,
                 boolean repEntriesOnly,
                 boolean csvFormat,
                 boolean forwards,
                 String customDumpReaderClass)
          throws EnvironmentNotFoundException,
                 EnvironmentLockedException
Dump a JE log into human readable form.

Throws:
EnvironmentNotFoundException
EnvironmentLockedException

main

public static void main(String[] argv)
The main used by the DbPrintLog utility.

Parameters:
argv - An array of command line arguments to the DbPrintLog utility.
 usage: java { com.sleepycat.je.util.DbPrintLog | -jar
 je-<version>.jar DbPrintLog }
  -h <envHomeDir>
  -s  <start file number or LSN, in hex>
  -e  <end file number or LSN, in hex>
  -k  <binary|hex|text|obfuscate> (format for dumping the key)

  -tx <targeted txn ids, comma separated>
  -ty <targeted entry types, comma separated>
  -S  show summary of log entries
  -SC show summary of log entries in CSV format
  -r  only print replicated log entries
  -b  scan log backwards. The entire log must be scanned, cannot be used
      with -s or -e
  -q  if specified, concise version is printed,
      default is verbose version
  -c  <name of custom dump reader class> if specified, DbPrintLog
      will attempt to load a class of this name, which will be used to
      process log entries. Used to customize formatting and dumping when
      debugging files.
 

All arguments are optional. The current directory is used if -h is not specified.


Berkeley DB Java Edition
version 5.0.34

Copyright (c) 2004-2011 Oracle. All rights reserved.