Package | Description |
---|---|
com.hazelcast.cp.internal.raft.impl.dto |
Contains structs that are used in Raft RPCs
|
com.hazelcast.cp.internal.raft.impl.log |
Contains the log abstraction which is maintained by the Raft algorithm
|
Modifier and Type | Method and Description |
---|---|
LogEntry[] |
AppendRequest.entries() |
Constructor and Description |
---|
AppendRequest(Endpoint leader,
int term,
int prevLogTerm,
long prevLogIndex,
long leaderCommitIndex,
LogEntry[] entries) |
Modifier and Type | Class and Description |
---|---|
class |
SnapshotEntry
Represents a snapshot in the
RaftLog . |
Modifier and Type | Method and Description |
---|---|
LogEntry[] |
RaftLog.getEntriesBetween(long fromEntryIndex,
long toEntryIndex)
Returns log entries between
fromEntryIndex and toEntryIndex , both inclusive. |
LogEntry |
RaftLog.getLogEntry(long entryIndex)
Returns the log entry stored at
entryIndex . |
LogEntry |
RaftLog.lastLogOrSnapshotEntry()
Returns the last entry in the Raft log,
either from the last log entry or from the last snapshot
if no logs are available.
|
Modifier and Type | Method and Description |
---|---|
List<LogEntry> |
RaftLog.truncateEntriesFrom(long entryIndex)
Truncates log entries with indexes
>= entryIndex . |
Modifier and Type | Method and Description |
---|---|
void |
RaftLog.appendEntries(LogEntry... newEntries)
Appends new entries to the Raft log.
|
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.