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, VLSNDistributionReader

public abstract class DumpFileReader
extends FileReader

The DumpFileReader prints every log entry to stdout.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sleepycat.je.log.FileReader
FileReader.EOFException, FileReader.ReadWindow
 
Field Summary
protected  Set<Long> targetTxnIds
           
protected  boolean verbose
           
 
Fields inherited from class com.sleepycat.je.log.FileReader
cksumValidator, currentEntryHeader, currentEntryOffset, currentEntryPrevOffset, envImpl, eof, fileManager, forward, logger, nextEntryOffset, startLsn, window
 
Constructor Summary
DumpFileReader(EnvironmentImpl env, int readBufferSize, long startLsn, long finishLsn, long endOfFileLsn, String entryTypes, String txnIds, boolean verbose, boolean repEntriesOnly, boolean forwards)
          Create this reader to start at a given LSN.
 
Method Summary
protected  boolean isTargetEntry()
           
 void summarize(boolean ignore)
           
 
Methods inherited from class com.sleepycat.je.log.FileReader
entryIsReplicated, getAndResetNReads, getLastEntrySize, getLastLsn, getNRepeatIteratorReads, getNumRead, initStartingPosition, makeWindow, processEntry, readNextEntry, readNextEntryAllowExceptions, resyncReader, setAlwaysValidateChecksum, setBackwardPosition, setForwardPosition, skipData, skipEntry, threadSafeBufferFlip, threadSafeBufferPosition, threadSafeBufferPosition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

targetTxnIds

protected final Set<Long> targetTxnIds

verbose

protected final boolean verbose
Constructor Detail

DumpFileReader

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

Throws:
DatabaseException
Method Detail

isTargetEntry

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

summarize

public void summarize(boolean ignore)


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