Add getPeerIds to RaftActorContext
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / RaftActorContext.java
index c4189820b33bc6b94ae9f05a5b28450d39684079..0c9d698cd5404f0675d11df935351df529b448f2 100644 (file)
@@ -14,6 +14,7 @@ import akka.actor.ActorSystem;
 import akka.actor.Props;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Supplier;
+import java.util.Collection;
 import java.util.Map;
 import org.opendaylight.controller.cluster.DataPersistenceProvider;
 import org.opendaylight.controller.cluster.raft.policy.RaftPolicy;
@@ -103,7 +104,7 @@ public interface RaftActorContext {
     Logger getLogger();
 
     /**
-     * @return a mapping of peerId's to their addresses
+     * @return a copy of the mapping of peerId's to their addresses
      *
      */
     Map<String, String> getPeerAddresses();
@@ -118,6 +119,11 @@ public interface RaftActorContext {
      */
     String getPeerAddress(String peerId);
 
+    /**
+     * @return the list of peer IDs.
+     */
+    Collection<String> getPeerIds();
+
     /**
      * Add to actor peers
      *