Class 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 Detail

      • TestOnlyRaftPolicy

        public TestOnlyRaftPolicy()
    • Method Detail

      • automaticElectionsEnabled

        public boolean automaticElectionsEnabled()
        Specified by:
        automaticElectionsEnabled in interface org.opendaylight.controller.cluster.raft.policy.RaftPolicy
      • applyModificationToStateBeforeConsensus

        public boolean applyModificationToStateBeforeConsensus()
        Specified by:
        applyModificationToStateBeforeConsensus in interface org.opendaylight.controller.cluster.raft.policy.RaftPolicy