public class FeederSyncupReader extends FileReader
FileReader.EOFException, FileReader.ReadWindowcksumValidator, currentEntryHeader, currentEntryOffset, currentEntryPrevOffset, envImpl, eof, fileManager, forward, logger, nextEntryOffset, startLsn, window| Constructor and Description |
|---|
FeederSyncupReader(EnvironmentImpl envImpl,
VLSNIndex vlsnIndex,
long endOfLogLsn,
int readBufferSize,
VLSN startVLSN,
long finishLsn) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isTargetEntry()
This method is called by readNextEntry() after the header of the current
logrec has been de-serialized, but not the body.
|
protected boolean |
processEntry(ByteBuffer entryBuffer)
Instantiate a WireRecord to house this log entry.
|
OutputWireRecord |
scanBackwards(VLSN vlsn)
Backward scanning for records for the feeder's part in syncup.
|
entryIsReplicated, getAndResetNReads, getLastEntrySize, getLastLsn, getLastVlsn, getLogVersion, getNRepeatIteratorReads, getNumRead, handleGapInBackwardsScan, initStartingPosition, makeWindow, readNextEntry, readNextEntryAllowExceptions, setAlwaysValidateChecksum, setBackwardPosition, setForwardPosition, skipData, skipEntrypublic FeederSyncupReader(EnvironmentImpl envImpl, VLSNIndex vlsnIndex, long endOfLogLsn, int readBufferSize, VLSN startVLSN, long finishLsn) throws IOException, DatabaseException
IOExceptionDatabaseExceptionpublic OutputWireRecord scanBackwards(VLSN vlsn) throws FileNotFoundException, ChecksumException
protected boolean isTargetEntry()
throws DatabaseException
FileReaderisTargetEntry in class FileReaderDatabaseException - from subclasses.protected boolean processEntry(ByteBuffer entryBuffer)
entryBuffer - A ByteBuffer that the logrec data and is positioned
at the start of the logrec body (i.e., just after the logrec header).Copyright © 2024. All rights reserved.