public class ReplicaSyncupReader extends FileReader
| Modifier and Type | Class and Description |
|---|---|
static class |
ReplicaSyncupReader.SkipGapException |
FileReader.EOFException, FileReader.ReadWindowcksumValidator, currentEntryHeader, currentEntryOffset, currentEntryPrevOffset, envImpl, eof, fileManager, forward, logger, nextEntryOffset, startLsn, window| Constructor and Description |
|---|
ReplicaSyncupReader(EnvironmentImpl envImpl,
VLSNIndex vlsnIndex,
long endOfLogLsn,
int readBufferSize,
VLSN startVLSN,
long finishLsn,
MatchpointSearchResults searchResults) |
| Modifier and Type | Method and Description |
|---|---|
OutputWireRecord |
findPrevSyncEntry(boolean startAtPrev)
Backward scanning for finding an earlier candidate syncup matchpoint.
|
protected void |
handleGapInBackwardsScan(long prevFileNum)
TBW
|
protected boolean |
isTargetEntry()
Return true for ckpt entries, for syncable entries, and if we're in
specific vlsn scan mode, any replicated entry.
|
protected boolean |
processEntry(ByteBuffer entryBuffer)
ProcessEntry does additional filtering before deciding whether to
return an entry as a candidate for matching.
|
OutputWireRecord |
scanBackwards(VLSN vlsn)
Backward scanning for the replica's part in syncup.
|
static void |
setFileGapHook(TestHook<Long> hook) |
entryIsReplicated, getAndResetNReads, getLastEntrySize, getLastLsn, getLastVlsn, getLogVersion, getNRepeatIteratorReads, getNumRead, initStartingPosition, makeWindow, readNextEntry, readNextEntryAllowExceptions, setAlwaysValidateChecksum, setBackwardPosition, setForwardPosition, skipData, skipEntrypublic ReplicaSyncupReader(EnvironmentImpl envImpl, VLSNIndex vlsnIndex, long endOfLogLsn, int readBufferSize, VLSN startVLSN, long finishLsn, MatchpointSearchResults searchResults) throws DatabaseException
DatabaseExceptionpublic OutputWireRecord scanBackwards(VLSN vlsn) throws DatabaseException
DatabaseExceptionpublic OutputWireRecord findPrevSyncEntry(boolean startAtPrev) throws DatabaseException
DatabaseExceptionprotected boolean isTargetEntry()
throws DatabaseException
isTargetEntry 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).protected void handleGapInBackwardsScan(long prevFileNum)
handleGapInBackwardsScan in class FileReaderCopyright © 2024. All rights reserved.