com.sleepycat.je.log
Class DumpFileReader

java.lang.Object
  extended by com.sleepycat.je.log.FileReader
      extended by com.sleepycat.je.log.DumpFileReader
Direct Known Subclasses:
PrintFileReader, StatsFileReader

public abstract class DumpFileReader
extends FileReader

The DumpFileReader prints every log entry to stdout.


Field Summary
protected  Set targetTxnIds
           
protected  boolean verbose
           
 
Fields inherited from class com.sleepycat.je.log.FileReader
anticipateChecksumErrors, cksumValidator, currentEntryChecksum, currentEntryOffset, currentEntryPrevOffset, currentEntrySize, currentEntryTypeNum, currentEntryTypeVersion, env, eof, fileManager, nextEntryOffset, readBufferFileEnd, readBufferFileNum, readBufferFileStart, startLsn
 
Constructor Summary
DumpFileReader(EnvironmentImpl env, int readBufferSize, long startLsn, long finishLsn, String entryTypes, String txnIds, boolean verbose)
          Create this reader to start at a given LSN.
 
Method Summary
protected  boolean isTargetEntry(byte logEntryTypeNumber, byte logEntryTypeVersion)
           
 void summarize()
           
 
Methods inherited from class com.sleepycat.je.log.FileReader
getLastLsn, getNRepeatIteratorReads, getNumRead, initStartingPosition, processEntry, readNextEntry, resyncReader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

targetTxnIds

protected Set targetTxnIds

verbose

protected boolean verbose
Constructor Detail

DumpFileReader

public DumpFileReader(EnvironmentImpl env,
                      int readBufferSize,
                      long startLsn,
                      long finishLsn,
                      String entryTypes,
                      String txnIds,
                      boolean verbose)
               throws IOException,
                      DatabaseException
Create this reader to start at a given LSN.

Throws:
IOException
DatabaseException
Method Detail

isTargetEntry

protected boolean isTargetEntry(byte logEntryTypeNumber,
                                byte logEntryTypeVersion)
Overrides:
isTargetEntry in class FileReader
Returns:
true if this reader should process this entry, or just skip over it.

summarize

public void summarize()


Copyright 2004-2005 Sleepycat, Inc. All Rights Reserved.