Package | Description |
---|---|
com.hazelcast.cp.internal.raft.impl |
Contains implementation classes of the Raft algorithm
|
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 |
---|---|
boolean |
RaftNodeImpl.installSnapshot(SnapshotEntry snapshot)
Restores the snapshot sent by the leader if it's not applied before.
|
Modifier and Type | Method and Description |
---|---|
SnapshotEntry |
InstallSnapshot.snapshot() |
Constructor and Description |
---|
InstallSnapshot(Endpoint leader,
int term,
SnapshotEntry snapshot) |
Modifier and Type | Method and Description |
---|---|
SnapshotEntry |
RaftLog.snapshot()
Returns snapshot entry.
|
Modifier and Type | Method and Description |
---|---|
int |
RaftLog.setSnapshot(SnapshotEntry snapshot)
Installs the snapshot entry and truncates log entries those are included
in snapshot (entries whose indexes are smaller than
the snapshot's index).
|
int |
RaftLog.setSnapshot(SnapshotEntry snapshot,
long truncateUpToIndex) |
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.