Uses of Record Class
org.opendaylight.raft.api.TermInfo
Packages that use TermInfo
Package
Description
Various provider-level APIs for plugging into
RaftActor
.Classes that constitute what would be a RAFT protocol API.
-
Uses of TermInfo in org.opendaylight.controller.cluster.raft
Methods in org.opendaylight.controller.cluster.raft that return TermInfoModifier and TypeMethodDescription@NonNull TermInfo
RaftActorContext.termInfo()
Returns the current termTermInfo
.RaftActorContextImpl.termInfo()
Methods in org.opendaylight.controller.cluster.raft with parameters of type TermInfoModifier and TypeMethodDescriptionvoid
RaftActorContext.persistTermInfo
(@NonNull TermInfo termInfo) Sets and persists aTermInfo
, so thatRaftActorContext.termInfo()
returns it, even if we undergo recovery.void
RaftActorContextImpl.persistTermInfo
(TermInfo newElectionInfo) void
RaftActorContext.setTermInfo
(@NonNull TermInfo termInfo) Sets, but does not persist, aTermInfo
, so thatRaftActorContext.termInfo()
returns it, unless we undergo recovery, in which case a priorTermInfo
may be returned.void
RaftActorContextImpl.setTermInfo
(TermInfo newElectionInfo) -
Uses of TermInfo in org.opendaylight.controller.cluster.raft.persisted
Methods in org.opendaylight.controller.cluster.raft.persisted that return TermInfoModifier and TypeMethodDescription@NonNull TermInfo
Snapshot.termInfo()
@NonNull TermInfo
UpdateElectionTerm.termInfo()
Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thetermInfo
record component.Methods in org.opendaylight.controller.cluster.raft.persisted with parameters of type TermInfoModifier and TypeMethodDescriptionstatic Snapshot
Snapshot.create
(@Nullable Snapshot.State state, List<LogEntry> entries, long lastIndex, long lastTerm, long lastAppliedIndex, long lastAppliedTerm, TermInfo termInfo, @Nullable VotingConfig serverConfig) static Snapshot
Snapshot.ofRaft
(TermInfo termInfo, RaftSnapshot raftSnapshot, EntryMeta lastIncluded, @Nullable Snapshot.State state) static Snapshot
Snapshot.ofTermLeader
(@Nullable Snapshot.State state, EntryMeta lastIncluded, TermInfo termInfo, @Nullable VotingConfig serverConfig) Constructors in org.opendaylight.controller.cluster.raft.persisted with parameters of type TermInfoModifierConstructorDescriptionUpdateElectionTerm
(@NonNull TermInfo termInfo) Deprecated, for removal: This API element is subject to removal in a future version.Creates an instance of aUpdateElectionTerm
record class. -
Uses of TermInfo in org.opendaylight.controller.cluster.raft.spi
Methods in org.opendaylight.controller.cluster.raft.spi that return TermInfoModifier and TypeMethodDescriptionTermInfoStore.currentTerm()
ReturnsTermInfo
for current term.@Nullable TermInfo
TermInfoStore.loadAndSetTerm()
Attempt to load the last persistedTermInfo
, if available.Methods in org.opendaylight.controller.cluster.raft.spi with parameters of type TermInfoModifier and TypeMethodDescriptionvoid
This method updates the in-memory election term state.void
TermInfoStore.storeAndSetTerm
(TermInfo newTerm) This method updates the in-memory election term state and persists it so it can be recovered on next restart. -
Uses of TermInfo in org.opendaylight.raft.api
Fields in org.opendaylight.raft.api declared as TermInfo