| Modifier and Type | Method and Description |
|---|---|
static TermIndex |
ServerImplUtils.newTermIndex(long term,
long index) |
static TermIndex |
ServerProtoUtils.toTermIndex(org.apache.ratis.proto.RaftProtos.LogEntryProto entry) |
static TermIndex |
ServerProtoUtils.toTermIndex(org.apache.ratis.proto.RaftProtos.TermIndexProto p) |
| Modifier and Type | Field and Description |
|---|---|
static TermIndex[] |
TermIndex.EMPTY_TERMINDEX_ARRAY |
| Modifier and Type | Method and Description |
|---|---|
static TermIndex |
TermIndex.newTermIndex(long term,
long index)
Create a new
TermIndex instance. |
| Modifier and Type | Method and Description |
|---|---|
abstract TermIndex[] |
RaftLog.getEntries(long startIndex,
long endIndex) |
abstract TermIndex |
RaftLog.getLastEntryTermIndex() |
abstract TermIndex |
RaftLog.getTermIndex(long index)
Get the TermIndex information of the given index.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
RaftLog.contains(TermIndex ti)
Does the log contains the given term and index? Used to check the
consistency between the local log of a follower and the log entries sent
by the leader.
|
abstract boolean |
RaftLog.isConfigEntry(TermIndex ti) |
| Modifier and Type | Method and Description |
|---|---|
TermIndex[] |
MemoryRaftLog.getEntries(long startIndex,
long endIndex) |
TermIndex |
MemoryRaftLog.getLastEntryTermIndex() |
TermIndex |
MemoryRaftLog.getTermIndex(long index) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
MemoryRaftLog.isConfigEntry(TermIndex ti) |
| Modifier and Type | Method and Description |
|---|---|
TermIndex[] |
SegmentedRaftLog.getEntries(long startIndex,
long endIndex) |
TermIndex |
SegmentedRaftLog.getLastEntryTermIndex() |
TermIndex |
SegmentedRaftLog.getTermIndex(long index) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
SegmentedRaftLog.isConfigEntry(TermIndex ti) |
| Modifier and Type | Method and Description |
|---|---|
TermIndex |
StateMachine.getLastAppliedTermIndex() |
TermIndex |
SnapshotInfo.getTermIndex()
Returns the term and index corresponding to this snapshot.
|
| Modifier and Type | Method and Description |
|---|---|
default CompletableFuture<TermIndex> |
StateMachine.notifyInstallSnapshotFromLeader(org.apache.ratis.proto.RaftProtos.RoleInfoProto roleInfoProto,
TermIndex firstTermIndexInLog)
Notify the Follower's state machine that the leader has purged entries
from its log and hence to catch up, the Follower state machine would have
to install the latest snapshot.
|
| Modifier and Type | Method and Description |
|---|---|
default CompletableFuture<TermIndex> |
StateMachine.notifyInstallSnapshotFromLeader(org.apache.ratis.proto.RaftProtos.RoleInfoProto roleInfoProto,
TermIndex firstTermIndexInLog)
Notify the Follower's state machine that the leader has purged entries
from its log and hence to catch up, the Follower state machine would have
to install the latest snapshot.
|
| Modifier and Type | Method and Description |
|---|---|
TermIndex |
BaseStateMachine.getLastAppliedTermIndex() |
TermIndex |
FileListSnapshotInfo.getTermIndex() |
static TermIndex |
SimpleStateMachineStorage.getTermIndexFromSnapshotFile(File file) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
BaseStateMachine.setLastAppliedTermIndex(TermIndex newTI) |
Copyright © 2017–2020 The Apache Software Foundation. All rights reserved.