public class FeederReader extends FileReader
FileReader.EOFException, FileReader.ReadWindowcksumValidator, currentEntryHeader, currentEntryOffset, currentEntryPrevOffset, envImpl, eof, fileManager, forward, logger, nextEntryOffset, startLsn, window| Constructor and Description |
|---|
FeederReader(RepImpl envImpl,
VLSNIndex vlsnIndex,
long startLsn,
int readBufferSize) |
| Modifier and Type | Method and Description |
|---|---|
long |
initScan(VLSN startVLSN)
Set up the FeederReader to start scanning from this VLSN.
|
protected boolean |
isTargetEntry()
Return true if this entry is replicated and its VLSN is currentVLSN.
|
protected FileReader.ReadWindow |
makeWindow(int readBufferSize)
Use a ReadWindow which can read from LogBuffers as well as the physical
file.
|
protected boolean |
processEntry(ByteBuffer entryBuffer)
Instantiate a WireRecord to house this log entry.
|
OutputWireRecord |
scanForwards(VLSN vlsn,
int waitTime)
Forward scanning for feeding the replica: get the log record for this
VLSN.
|
entryIsReplicated, getAndResetNReads, getLastEntrySize, getLastLsn, getLastVlsn, getLogVersion, getNRepeatIteratorReads, getNumRead, handleGapInBackwardsScan, initStartingPosition, readNextEntry, readNextEntryAllowExceptions, setAlwaysValidateChecksum, setBackwardPosition, setForwardPosition, skipData, skipEntryprotected FileReader.ReadWindow makeWindow(int readBufferSize)
makeWindow in class FileReaderDatabaseExceptionpublic long initScan(VLSN startVLSN) throws IOException
IOExceptionpublic OutputWireRecord scanForwards(VLSN vlsn, int waitTime) throws InterruptedException
InterruptedExceptionprotected boolean isTargetEntry()
isTargetEntry in class FileReaderprotected boolean processEntry(ByteBuffer entryBuffer)
processEntry in class FileReaderentryBuffer - 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.