Uses of Interface
org.opendaylight.controller.cluster.raft.spi.LogEntry
Packages that use LogEntry
-
Uses of LogEntry in org.opendaylight.controller.cluster.datastore.actors
Constructors in org.opendaylight.controller.cluster.datastore.actors with parameters of type LogEntry -
Uses of LogEntry in org.opendaylight.controller.cluster.raft
Subinterfaces of LogEntry in org.opendaylight.controller.cluster.raftModifier and TypeInterfaceDescriptioninterface
Represents one entry in the replicated log.Methods in org.opendaylight.controller.cluster.raft that return LogEntryModifier and TypeMethodDescriptionfinal LogEntry
AbstractReplicatedLog.entryAt
(long offset) ReplicatedLog.entryAt
(long offset) Returns the entry and specified offset.@Nullable LogEntry
ReplicatedLog.last()
Return the last replicated log entry in the log or null of not found.@Nullable LogEntry
ReplicatedLog.lookup
(long index) Return the replicated log entry at the specified index.Methods in org.opendaylight.controller.cluster.raft with parameters of type LogEntryModifier and TypeMethodDescriptionprotected abstract @NonNull T
AbstractReplicatedLog.adoptEntry
(LogEntry entry) final boolean
boolean
Appends an entry to the log if its index is already included in the log.boolean
ReplicatedLog.appendReceived
(LogEntry entry, @Nullable Consumer<LogEntry> callback) Appends an entry received by a follower to the in-memory log and persists it as well, returning an indication whether or not a snapshot should be taken.void
ApplyEntryMethod.applyEntry
(@Nullable Identifier identifier, LogEntry entry) Method parameters in org.opendaylight.controller.cluster.raft with type arguments of type LogEntryModifier and TypeMethodDescriptionboolean
ReplicatedLog.appendReceived
(LogEntry entry, @Nullable Consumer<LogEntry> callback) Appends an entry received by a follower to the in-memory log and persists it as well, returning an indication whether or not a snapshot should be taken. -
Uses of LogEntry in org.opendaylight.controller.cluster.raft.base.messages
Methods in org.opendaylight.controller.cluster.raft.base.messages that return LogEntryModifier and TypeMethodDescriptionApplyState.entry()
Returns the value of theentry
record component.Constructors in org.opendaylight.controller.cluster.raft.base.messages with parameters of type LogEntryModifierConstructorDescriptionApplyState
(@Nullable Identifier identifier, LogEntry entry) Creates an instance of aApplyState
record class. -
Uses of LogEntry in org.opendaylight.controller.cluster.raft.messages
Methods in org.opendaylight.controller.cluster.raft.messages that return types with arguments of type LogEntryConstructor parameters in org.opendaylight.controller.cluster.raft.messages with type arguments of type LogEntryModifierConstructorDescriptionAppendEntries
(long term, @NonNull String leaderId, long prevLogIndex, long prevLogTerm, @NonNull List<? extends @NonNull LogEntry> entries, long leaderCommit, long replicatedToAllIndex, short payloadVersion) AppendEntries
(long term, @NonNull String leaderId, long prevLogIndex, long prevLogTerm, @NonNull List<? extends @NonNull LogEntry> entries, long leaderCommit, long replicatedToAllIndex, short payloadVersion, short recipientRaftVersion, @Nullable String leaderAddress) -
Uses of LogEntry in org.opendaylight.controller.cluster.raft.persisted
Classes in org.opendaylight.controller.cluster.raft.persisted that implement LogEntryMethods in org.opendaylight.controller.cluster.raft.persisted that return types with arguments of type LogEntryMethods in org.opendaylight.controller.cluster.raft.persisted with parameters of type LogEntryMethod parameters in org.opendaylight.controller.cluster.raft.persisted with type arguments of type LogEntryModifier 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) -
Uses of LogEntry in org.opendaylight.controller.cluster.raft.spi
Classes in org.opendaylight.controller.cluster.raft.spi that implement LogEntryMethods in org.opendaylight.controller.cluster.raft.spi that return LogEntryModifier and TypeMethodDescriptionfinal LogEntry
EntryJournal.JournalEntry.toLogEntry()
Convert thisEntryJournal.JournalEntry
into aLogEntry
by interpretingEntryJournal.JournalEntry.openCommandStream()
as a stream comtainingcommand()
serialized via Java serialization of itsStateMachineCommand.toSerialForm()
.Methods in org.opendaylight.controller.cluster.raft.spi that return types with arguments of type LogEntryModifier and TypeMethodDescriptionRaftSnapshot.unappliedEntries()
Returns the value of theunappliedEntries
record component.Methods in org.opendaylight.controller.cluster.raft.spi with parameters of type LogEntryModifier and TypeMethodDescriptionlong
EntryJournal.appendEntry
(LogEntry entry) Append an entry at the currentjournalIndex
.long
EntryJournalV1.appendEntry
(LogEntry entry) void
JournalWriteTask.appendEntry
(LogEntry entry, RaftCallback<Long> callback) Append a log entry to the journal.static DefaultLogEntry
static void
DefaultLogEntry.writeTo
(LogEntry entry, ObjectOutput out) Method parameters in org.opendaylight.controller.cluster.raft.spi with type arguments of type LogEntryModifier and TypeMethodDescriptionabstract Closeable
SnapshotFileFormat.createNew
(Path file, Instant timestamp, EntryInfo lastIncluded, @Nullable VotingConfig votingConfig, CompressionType entryCompress, List<LogEntry> unappliedEntries, CompressionType stateCompress, @Nullable StateSnapshot.ToStorage<?> state) Create a file of this format with the content of specified snapshot.Constructor parameters in org.opendaylight.controller.cluster.raft.spi with type arguments of type LogEntryModifierConstructorDescriptionRaftSnapshot
(@Nullable VotingConfig votingConfig, List<LogEntry> unappliedEntries) Creates an instance of aRaftSnapshot
record class.