com.sleepycat.je.log
Class StatsFileReader
java.lang.Object
com.sleepycat.je.log.FileReader
com.sleepycat.je.log.DumpFileReader
com.sleepycat.je.log.StatsFileReader
public class StatsFileReader
- extends DumpFileReader
The StatsFileReader generates stats about the log entries read, such as the
count of each type of entry, the number of bytes, minimum and maximum sized
log entry.
| Fields inherited from class com.sleepycat.je.log.FileReader |
cksumValidator, currentEntryHeader, currentEntryOffset, currentEntryPrevOffset, envImpl, eof, fileManager, forward, logger, nextEntryOffset, startLsn, window |
|
Constructor Summary |
StatsFileReader(EnvironmentImpl envImpl,
int readBufferSize,
long startLsn,
long finishLsn,
String entryTypes,
String txnIds,
boolean verbose,
boolean repEntriesOnly)
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 |
StatsFileReader
public StatsFileReader(EnvironmentImpl envImpl,
int readBufferSize,
long startLsn,
long finishLsn,
String entryTypes,
String txnIds,
boolean verbose,
boolean repEntriesOnly)
throws DatabaseException
- Create this reader to start at a given LSN.
- Throws:
DatabaseException
processEntry
protected boolean processEntry(ByteBuffer entryBuffer)
- This reader collects stats about the log entry.
- 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
summarize
public void summarize(boolean csvFormat)
- Overrides:
summarize in class DumpFileReader
Copyright (c) 2004-2010 Oracle. All rights reserved.