所有方法 实例方法 抽象方法 具体方法 默认方法 已过时的方法
| 限定符和类型 |
方法和说明 |
List<CompletableFuture<Long>> |
append(List<org.apache.ratis.proto.RaftProtos.LogEntryProto> entries) |
long |
append(long term,
RaftConfiguration configuration) |
long |
append(long term,
TransactionContext transaction) |
default List<CompletableFuture<Long>> |
append(org.apache.ratis.proto.RaftProtos.LogEntryProto... arg0)
已过时。
|
CompletableFuture<Long> |
appendEntry(org.apache.ratis.proto.RaftProtos.LogEntryProto entry) |
CompletableFuture<Long> |
appendEntry(org.apache.ratis.proto.RaftProtos.LogEntryProto entry,
TransactionContext context) |
protected abstract CompletableFuture<Long> |
appendEntryImpl(org.apache.ratis.proto.RaftProtos.LogEntryProto entry,
TransactionContext context) |
protected abstract List<CompletableFuture<Long>> |
appendImpl(List<org.apache.ratis.proto.RaftProtos.LogEntryProto> entries) |
long |
appendMetadata(long term,
long newCommitIndex) |
void |
checkLogState() |
void |
close() |
long |
getLastCommittedIndex() |
String |
getName() |
long |
getSnapshotIndex() |
boolean |
hasReadLock() |
boolean |
hasWriteLock() |
boolean |
isOpened()
Is this log already opened?
|
protected RaftLog.EntryWithData |
newEntryWithData(org.apache.ratis.proto.RaftProtos.LogEntryProto logEntry,
CompletableFuture<org.apache.ratis.thirdparty.com.google.protobuf.ByteString> future) |
void |
open(long lastIndexInSnapshot,
Consumer<org.apache.ratis.proto.RaftProtos.LogEntryProto> consumer) |
protected void |
openImpl(long lastIndexInSnapshot,
Consumer<org.apache.ratis.proto.RaftProtos.LogEntryProto> consumer) |
CompletableFuture<Long> |
purge(long suggestedIndex) |
protected abstract CompletableFuture<Long> |
purgeImpl(long index) |
AutoCloseableLock |
readLock() |
String |
toLogEntryString(org.apache.ratis.proto.RaftProtos.LogEntryProto logEntry) |
String |
toString() |
CompletableFuture<Long> |
truncate(long index) |
protected abstract CompletableFuture<Long> |
truncateImpl(long index) |
AutoCloseableLock |
tryWriteLock(TimeDuration timeout) |
boolean |
updateCommitIndex(long majorityIndex,
long currentTerm,
boolean isLeader) |
protected void |
updatePurgeIndex(Long purged) |
void |
updateSnapshotIndex(long newSnapshotIndex) |
protected void |
updateSnapshotIndexFromStateMachine() |
protected void |
validateLogEntry(org.apache.ratis.proto.RaftProtos.LogEntryProto entry)
Validate the term and index of entry w.r.t RaftLog
|
AutoCloseableLock |
writeLock() |