class ReadLastConfirmedAndEntryOp.SequenceReadRequest extends ReadLastConfirmedAndEntryOp.ReadLACAndEntryRequest
| Modifier and Type | Field and Description |
|---|---|
(package private) java.util.BitSet |
emptyResponseReplicas |
(package private) java.util.BitSet |
erroredReplicas |
(package private) int |
nextReplicaIndexToReadFrom |
(package private) static int |
NOT_FOUND |
(package private) java.util.BitSet |
sentReplicas |
complete, ensemble, entryImpl, firstError, numMissedEntryReads, orderedEnsemble, rc, writeSet| Constructor and Description |
|---|
SequenceReadRequest(java.util.List<org.apache.bookkeeper.net.BookieId> ensemble,
long lId,
long eId) |
| Modifier and Type | Method and Description |
|---|---|
(package private) boolean |
complete(int bookieIndex,
org.apache.bookkeeper.net.BookieId host,
io.netty.buffer.ByteBuf buffer,
long entryId)
Complete the read request from host.
|
(package private) void |
logErrorAndReattemptRead(int bookieIndex,
org.apache.bookkeeper.net.BookieId host,
java.lang.String errMsg,
int rc)
Log error errMsg and reattempt read from host.
|
(package private) org.apache.bookkeeper.net.BookieId |
maybeSendSpeculativeRead(java.util.BitSet heardFrom)
Send to next replica speculatively, if required and possible.
|
(package private) void |
read()
Execute the read request.
|
(package private) org.apache.bookkeeper.net.BookieId |
sendNextRead() |
close, fail, getFirstError, getRc, isComplete, toStringstatic final int NOT_FOUND
int nextReplicaIndexToReadFrom
final java.util.BitSet sentReplicas
final java.util.BitSet erroredReplicas
final java.util.BitSet emptyResponseReplicas
SequenceReadRequest(java.util.List<org.apache.bookkeeper.net.BookieId> ensemble,
long lId,
long eId)
org.apache.bookkeeper.net.BookieId maybeSendSpeculativeRead(java.util.BitSet heardFrom)
maybeSendSpeculativeRead in class ReadLastConfirmedAndEntryOp.ReadLACAndEntryRequestheardFrom - the set of hosts that we already received responses.void read()
ReadLastConfirmedAndEntryOp.ReadLACAndEntryRequestread in class ReadLastConfirmedAndEntryOp.ReadLACAndEntryRequestorg.apache.bookkeeper.net.BookieId sendNextRead()
void logErrorAndReattemptRead(int bookieIndex,
org.apache.bookkeeper.net.BookieId host,
java.lang.String errMsg,
int rc)
ReadLastConfirmedAndEntryOp.ReadLACAndEntryRequestlogErrorAndReattemptRead in class ReadLastConfirmedAndEntryOp.ReadLACAndEntryRequestbookieIndex - bookie indexhost - host that just responderrMsg - error msg to logrc - read result codeboolean complete(int bookieIndex,
org.apache.bookkeeper.net.BookieId host,
io.netty.buffer.ByteBuf buffer,
long entryId)
ReadLastConfirmedAndEntryOp.ReadLACAndEntryRequestcomplete in class ReadLastConfirmedAndEntryOp.ReadLACAndEntryRequestbookieIndex - bookie indexhost - host that respond the readbuffer - the data bufferCopyright © 2011–2024 The Apache Software Foundation. All rights reserved.