| java.lang.Object com.sleepycat.je.log.FileReader com.sleepycat.je.log.LastFileReader
LastFileReader | public class LastFileReader extends FileReader (Code) | | LastFileReader traverses the last log file, doing checksums and looking for
the end of the log. Different log types can be registered with it and it
will remember the last occurrence of targetted entry types.
|
LastFileReader | public LastFileReader(EnvironmentImpl env, int readBufferSize, Long specificFileNumber) throws IOException, DatabaseException(Code) | | Ctor which allows passing in the file number we want to read to the end
of. This is used by the ScavengerFileReader when it encounters a bad
log record in the middle of a file.
|
getEndOfLog | public long getEndOfLog()(Code) | | The LSN to be used for the next log entry. |
getLastSeen | public long getLastSeen(LogEntryType type)(Code) | | The last LSN seen in the log for this kind of entry, or null. |
getLastValidLsn | public long getLastValidLsn()(Code) | | |
getPrevOffset | public long getPrevOffset()(Code) | | |
processEntry | protected boolean processEntry(ByteBuffer entryBuffer)(Code) | | Validate the checksum on each entry, see if we should remember the LSN
of this entry.
|
setTargetType | public void setTargetType(LogEntryType type)(Code) | | Tell the reader that we are interested in these kind of entries.
|
|
|