public class ReplicaSyncupReader extends VLSNReader
FileReader.EOFException, FileReader.ReadWindowcurrentFeedRecord, currentVLSN, nReposition, nScanned, vlsnIndexcksumValidator, currentEntryHeader, currentEntryOffset, currentEntryPrevOffset, envImpl, eof, fileManager, forward, nextEntryOffset, startLsn, window| Constructor and Description |
|---|
ReplicaSyncupReader(EnvironmentImpl envImpl,
VLSNIndex vlsnIndex,
long endOfLogLsn,
int readBufferSize,
NameIdPair nameIdPair,
VLSN startVLSN,
long finishLsn,
MatchpointSearchResults searchResults) |
| Modifier and Type | Method and Description |
|---|---|
OutputWireRecord |
findPrevSyncEntry()
Backward scanning for finding an earlier candidate syncup matchpoint.
|
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(java.nio.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.
|
getNReposition, getNScanned, resetStats, setPositionentryIsReplicated, getAndResetNReads, getLastEntrySize, getLastLsn, getNRepeatIteratorReads, getNumRead, initStartingPosition, makeWindow, readNextEntry, readNextEntryAllowExceptions, resyncReader, setAlwaysValidateChecksum, setBackwardPosition, setForwardPosition, skipData, skipEntrypublic ReplicaSyncupReader(EnvironmentImpl envImpl, VLSNIndex vlsnIndex, long endOfLogLsn, int readBufferSize, NameIdPair nameIdPair, VLSN startVLSN, long finishLsn, MatchpointSearchResults searchResults) throws java.io.IOException, DatabaseException
java.io.IOExceptionDatabaseExceptionpublic OutputWireRecord scanBackwards(VLSN vlsn) throws DatabaseException
DatabaseExceptionpublic OutputWireRecord findPrevSyncEntry() throws DatabaseException
DatabaseExceptionprotected boolean isTargetEntry()
throws DatabaseException
isTargetEntry in class FileReaderDatabaseException - from subclasses.protected boolean processEntry(java.nio.ByteBuffer entryBuffer)
processEntry in class VLSNReaderentryBuffer - contains the entry data and is positioned at the
dataCopyright (c) 2004-2012 Oracle. All rights reserved.