|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.log.FileReader
com.sleepycat.je.log.UtilizationFileReader
public class UtilizationFileReader
Summarizes the utilized and unutilized portion of each log file by examining each log entry. Does not use the Cleaner UtilizationProfile information in order to provide a second measure against which to evaluation the UtilizationProfile accuracy.
Field Summary |
---|
Fields inherited from class com.sleepycat.je.log.FileReader |
---|
anticipateChecksumErrors, cksumValidator, currentEntryHeader, currentEntryOffset, currentEntryPrevOffset, envImpl, eof, fileManager, nextEntryOffset, readBufferFileEnd, readBufferFileNum, readBufferFileStart, startLsn |
Method Summary | |
---|---|
static java.util.Map |
calcFileSummaryMap(EnvironmentImpl env)
Creates a UtilizationReader, reads the log, and returns the resulting Map of Long file number to FileSummary. |
protected boolean |
isTargetEntry(byte logEntryTypeNumber,
byte logEntryTypeVersion)
|
protected boolean |
processEntry(java.nio.ByteBuffer entryBuffer)
Each file reader implements this method to process the entry data. |
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 |
Method Detail |
---|
protected boolean isTargetEntry(byte logEntryTypeNumber, byte logEntryTypeVersion)
isTargetEntry
in class FileReader
protected boolean processEntry(java.nio.ByteBuffer entryBuffer) throws DatabaseException
FileReader
processEntry
in class FileReader
DatabaseException
public static java.util.Map calcFileSummaryMap(EnvironmentImpl env) throws java.io.IOException, DatabaseException
java.io.IOException
DatabaseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |