com.sleepycat.je.log
Class DumpFileReader
java.lang.Object
com.sleepycat.je.log.FileReader
com.sleepycat.je.log.DumpFileReader
- Direct Known Subclasses:
- PrintFileReader, StatsFileReader
public abstract class DumpFileReader
- extends FileReader
The DumpFileReader prints every log entry to stdout.
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. |
Methods inherited from class com.sleepycat.je.log.FileReader |
entryIsReplicated, getAndResetNReads, getLastEntrySize, getLastLsn, getNRepeatIteratorReads, getNumRead, initStartingPosition, makeWindow, processEntry, 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 |
targetTxnIds
protected final Set<Long> targetTxnIds
verbose
protected final boolean verbose
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
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 cvsFormat)
Copyright (c) 2004-2010 Oracle. All rights reserved.