| 程序包 | 说明 |
|---|---|
| org.apache.ratis.server.leader | |
| org.apache.ratis.server.protocol | |
| org.apache.ratis.server.raftlog | |
| org.apache.ratis.statemachine |
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.ratis.proto.RaftProtos.AppendEntriesRequestProto |
LeaderState.newAppendEntriesRequestProto(FollowerInfo follower,
List<org.apache.ratis.proto.RaftProtos.LogEntryProto> entries,
TermIndex previous,
long callId) |
org.apache.ratis.proto.RaftProtos.InstallSnapshotRequestProto |
LogAppender.newInstallSnapshotNotificationRequest(TermIndex firstAvailableLogTermIndex) |
| 限定符和类型 | 字段和说明 |
|---|---|
static TermIndex[] |
TermIndex.EMPTY_ARRAY |
| 限定符和类型 | 方法和说明 |
|---|---|
static TermIndex |
TermIndex.valueOf(long term,
long index) |
static TermIndex |
TermIndex.valueOf(org.apache.ratis.proto.RaftProtos.LogEntryProto proto) |
static TermIndex |
TermIndex.valueOf(org.apache.ratis.proto.RaftProtos.TermIndexProto proto) |
| 限定符和类型 | 方法和说明 |
|---|---|
default int |
TermIndex.compareTo(TermIndex that) |
| 限定符和类型 | 方法和说明 |
|---|---|
TermIndex |
RaftLog.getLastEntryTermIndex() |
TermIndex |
LogEntryHeader.getTermIndex() |
TermIndex |
RaftLog.getTermIndex(long index) |
| 限定符和类型 | 方法和说明 |
|---|---|
default boolean |
RaftLog.contains(TermIndex ti)
Does this log contains the given
TermIndex? |
static LogEntryHeader |
LogEntryHeader.valueOf(TermIndex ti,
org.apache.ratis.proto.RaftProtos.LogEntryProto.LogEntryBodyCase logEntryBodyCase) |
| 限定符和类型 | 方法和说明 |
|---|---|
TermIndex |
StateMachine.getLastAppliedTermIndex() |
TermIndex |
SnapshotInfo.getTermIndex() |
| 限定符和类型 | 方法和说明 |
|---|---|
default CompletableFuture<TermIndex> |
StateMachine.FollowerEventApi.notifyInstallSnapshotFromLeader(org.apache.ratis.proto.RaftProtos.RoleInfoProto roleInfoProto,
TermIndex firstTermIndexInLog)
Notify the
StateMachine that the leader has purged entries from its log. |
| 限定符和类型 | 方法和说明 |
|---|---|
default CompletableFuture<TermIndex> |
StateMachine.FollowerEventApi.notifyInstallSnapshotFromLeader(org.apache.ratis.proto.RaftProtos.RoleInfoProto roleInfoProto,
TermIndex firstTermIndexInLog)
Notify the
StateMachine that the leader has purged entries from its log. |
Copyright © 2017–2025 The Apache Software Foundation. All rights reserved.