Add voting state to shard mbean FollowerInfo
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / FollowerLogInformation.java
index b2173c2baf3d9caec83207c28a383590aea61640..4367a7a151ff729bcac7de25f4fbeaf54b114089 100644 (file)
@@ -12,12 +12,6 @@ package org.opendaylight.controller.cluster.raft;
  */
 public interface FollowerLogInformation {
 
-    enum FollowerState {
-        VOTING,
-        NON_VOTING,
-        VOTING_NOT_INITIALIZED
-    };
-
     /**
      * Increment the value of the nextIndex
      *
@@ -116,18 +110,12 @@ public interface FollowerLogInformation {
     void setPayloadVersion(short payloadVersion);
 
     /**
-     * Sets the state of the follower.
-     */
-    void setFollowerState(FollowerState state);
-
-    /**
-     * @return the state of the follower.
+     * @return the raft version of the follower.
      */
-    FollowerState getFollowerState();
+    short getRaftVersion();
 
     /**
-     * @return true if the follower is in a state where it can participate in leader elections and
-     *              commitment consensus.
+     * Sets the raft version of the follower.
      */
-    boolean canParticipateInConsensus();
+    void setRaftVersion(short payloadVersion);
 }