Bug 2187: Prevent non-voting member from initiating elections
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / RaftActorContext.java
index b20e9daa945cee3e14cb0181be72317808b8afc0..10db6d06c21850a1d2e1a619845c4a4b599e4025 100644 (file)
@@ -236,4 +236,9 @@ public interface RaftActorContext {
      * dynamic server configurations are available, otherwise returns null
      */
     @Nullable ServerConfigurationPayload getPeerServerInfo();
      * dynamic server configurations are available, otherwise returns null
      */
     @Nullable ServerConfigurationPayload getPeerServerInfo();
+
+    /**
+     * @return true if this RaftActor is a voting member of the cluster, false otherwise.
+     */
+    boolean isVotingMember();
 }
 }