Class TestOnlyRaftPolicy
- java.lang.Object
-
- org.opendaylight.controller.cluster.datastore.policy.TestOnlyRaftPolicy
-
- All Implemented Interfaces:
org.opendaylight.controller.cluster.raft.policy.RaftPolicy
public class TestOnlyRaftPolicy extends Object implements org.opendaylight.controller.cluster.raft.policy.RaftPolicy
A RaftPolicy that disables elections so that we can then specify exactly which Shard Replica should be Leader. Once a Leader is assigned it will behave as per Raft.
-
-
Constructor Summary
Constructors Constructor Description TestOnlyRaftPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanapplyModificationToStateBeforeConsensus()booleanautomaticElectionsEnabled()
-
-
-
Method Detail
-
automaticElectionsEnabled
public boolean automaticElectionsEnabled()
- Specified by:
automaticElectionsEnabledin interfaceorg.opendaylight.controller.cluster.raft.policy.RaftPolicy
-
applyModificationToStateBeforeConsensus
public boolean applyModificationToStateBeforeConsensus()
- Specified by:
applyModificationToStateBeforeConsensusin interfaceorg.opendaylight.controller.cluster.raft.policy.RaftPolicy
-
-