com.sleepycat.je.log
Class StatsFileReader

java.lang.Object
  extended by com.sleepycat.je.log.FileReader
      extended by com.sleepycat.je.log.DumpFileReader
          extended by 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.


Nested Class Summary
(package private) static class StatsFileReader.CheckpointCounter
           
(package private)  class StatsFileReader.CheckpointInfoCSVFormatter
           
(package private)  class StatsFileReader.CheckpointInfoTextFormatter
           
(package private) static class StatsFileReader.EntryInfo
           
(package private) static class StatsFileReader.LogEntryTypeComparator
           
 
Nested classes/interfaces inherited from class com.sleepycat.je.log.FileReader
FileReader.EOFException, FileReader.ReadWindow
 
Field Summary
 
Fields inherited from class com.sleepycat.je.log.DumpFileReader
targetTxnIds, verbose
 
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, long endOfFileLsn, String entryTypes, String txnIds, boolean verbose, boolean repEntriesOnly, boolean forwards)
          Create this reader to start at a given LSN.
 
Method Summary
protected  boolean processEntry(ByteBuffer entryBuffer)
          This reader collects stats about the log entry.
 void summarize(boolean csvFormat)
           
 
Methods inherited from class com.sleepycat.je.log.DumpFileReader
isTargetEntry
 
Methods inherited from class com.sleepycat.je.log.FileReader
entryIsReplicated, getAndResetNReads, getLastEntrySize, getLastLsn, getNRepeatIteratorReads, getNumRead, initStartingPosition, makeWindow, readNextEntry, readNextEntryAllowExceptions, resyncReader, setAlwaysValidateChecksum, setBackwardPosition, setForwardPosition, skipData, skipEntry, threadSafeBufferFlip, threadSafeBufferPosition, threadSafeBufferPosition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatsFileReader

public StatsFileReader(EnvironmentImpl envImpl,
                       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
Method Detail

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-2012 Oracle. All rights reserved.