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, currentEntryChecksum, currentEntryOffset, currentEntryPrevOffset, currentEntrySize, currentEntryTypeNum, currentEntryTypeVersion, env, eof, fileManager, nextEntryOffset, readBufferFileEnd, readBufferFileNum, readBufferFileStart, startLsn |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatsFileReader
public StatsFileReader(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
processEntry
protected boolean processEntry(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-2005 Sleepycat, Inc. All Rights Reserved.