com.sleepycat.je.log
Class PrintFileReader

java.lang.Object
  extended by com.sleepycat.je.log.FileReader
      extended by com.sleepycat.je.log.DumpFileReader
          extended by com.sleepycat.je.log.PrintFileReader

public class PrintFileReader
extends DumpFileReader

The PrintFileReader prints out the target log entries.


Field Summary
 
Fields inherited from class com.sleepycat.je.log.DumpFileReader
targetTxnIds, 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
PrintFileReader(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 processEntry(ByteBuffer entryBuffer)
          This reader prints the log entry item.
 
Methods inherited from class com.sleepycat.je.log.DumpFileReader
isTargetEntry, summarize
 
Methods inherited from class com.sleepycat.je.log.FileReader
getLastLsn, getNRepeatIteratorReads, getNumRead, initStartingPosition, readNextEntry, resyncReader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintFileReader

public PrintFileReader(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

processEntry

protected boolean processEntry(ByteBuffer entryBuffer)
                        throws DatabaseException
This reader prints the log entry item.

Specified by:
processEntry in class FileReader
Returns:
true if this entry should be returned
Throws:
DatabaseException


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