public class TestOnlyRaftPolicy extends Object implements RaftPolicy
| Constructor and Description |
|---|
TestOnlyRaftPolicy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
applyModificationToStateBeforeConsensus()
According to Raft consensus on a Raft entry is achieved only after a Leader replicates a log entry to a
majority of it's followers.
|
boolean |
automaticElectionsEnabled()
According to Raft a Follower which does not receive a heartbeat (aka AppendEntries) in a given period should
become a Candidate and trigger an election.
|
public boolean automaticElectionsEnabled()
RaftPolicyautomaticElectionsEnabled in interface RaftPolicypublic boolean applyModificationToStateBeforeConsensus()
RaftPolicyapplyModificationToStateBeforeConsensus in interface RaftPolicyCopyright © 2019 OpenDaylight. All rights reserved.