com.sleepycat.je.log
Class PrintFileReader
java.lang.Object
com.sleepycat.je.log.FileReader
com.sleepycat.je.log.DumpFileReader
com.sleepycat.je.log.PrintFileReader
public class PrintFileReader
- extends DumpFileReader
The PrintFileReader prints out the target log entries.
Fields inherited from class com.sleepycat.je.log.FileReader |
cksumValidator, currentEntryHeader, currentEntryOffset, currentEntryPrevOffset, envImpl, eof, fileManager, forward, logger, nextEntryOffset, startLsn, window |
Constructor Summary |
PrintFileReader(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. |
Methods inherited from class com.sleepycat.je.log.FileReader |
entryIsReplicated, getAndResetNReads, getLastEntrySize, getLastLsn, getNRepeatIteratorReads, getNumRead, initStartingPosition, makeWindow, readNextEntry, readNextEntryAllowExceptions, resyncReader, setAlwaysValidateChecksum, setBackwardPosition, setForwardPosition, threadSafeBufferFlip, threadSafeBufferPosition, threadSafeBufferPosition |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrintFileReader
public PrintFileReader(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
processEntry
protected boolean processEntry(ByteBuffer entryBuffer)
throws DatabaseException
- This reader prints the log entry item.
- Specified by:
processEntry
in class FileReader
- Parameters:
entryBuffer
- contains the entry data and is positioned at the
data
- Returns:
- true if this entry should be returned
- Throws:
DatabaseException
Copyright (c) 2004-2010 Oracle. All rights reserved.