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 |
anticipateChecksumErrors, cksumValidator, currentEntryHeader, currentEntryOffset, currentEntryPrevOffset, envImpl, eof, fileManager, nextEntryOffset, readBufferFileEnd, readBufferFileNum, readBufferFileStart, startLsn |
|
Constructor Summary |
StatsFileReader(EnvironmentImpl envImpl,
int readBufferSize,
long startLsn,
long finishLsn,
java.lang.String entryTypes,
java.lang.String txnIds,
boolean verbose)
Create this reader to start at a given LSN. |
|
Method Summary |
protected boolean |
processEntry(java.nio.ByteBuffer entryBuffer)
This reader collects stats about the log entry. |
void |
summarize()
|
| Methods inherited from class com.sleepycat.je.log.FileReader |
getAndResetNReads, getLastEntrySize, getLastLsn, getNRepeatIteratorReads, getNumRead, initStartingPosition, readEntry, readNextEntry, resyncReader, setAlwaysValidateChecksum, 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,
java.lang.String entryTypes,
java.lang.String txnIds,
boolean verbose)
throws java.io.IOException,
DatabaseException
- Create this reader to start at a given LSN.
- Throws:
java.io.IOException
DatabaseException
processEntry
protected boolean processEntry(java.nio.ByteBuffer entryBuffer)
throws DatabaseException
- This reader collects stats about the log entry.
- Specified by:
processEntry in class FileReader
- Returns:
- true if this entry should be returned
- Throws:
DatabaseException
summarize
public void summarize()
- Overrides:
summarize in class DumpFileReader
Copyright 2004,2008 Oracle. All rights reserved.