import akka.actor.Props;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Supplier;
-import java.util.Map;
+import java.util.Collection;
import org.opendaylight.controller.cluster.DataPersistenceProvider;
+import org.opendaylight.controller.cluster.raft.policy.RaftPolicy;
import org.slf4j.Logger;
/**
*/
Logger getLogger();
- /**
- * @return a mapping of peerId's to their addresses
- *
- */
- Map<String, String> getPeerAddresses();
-
/**
* Get the address of the peer as a String. This is the same format in
* which a consumer would provide the address
*/
String getPeerAddress(String peerId);
+ /**
+ * @param serverCfgPayload
+ */
+ void updatePeerIds(ServerConfigurationPayload serverCfgPayload);
+
+ /**
+ * @return list of PeerInfo
+ */
+ Collection<PeerInfo> getPeers();
+
+ /**
+ * @return the list of peer IDs.
+ */
+ Collection<String> getPeerIds();
+
+ /**
+ * Get the PeerInfo for the given peer.
+ *
+ * @param peerId
+ * @return the PeerInfo
+ */
+ PeerInfo getPeerInfo(String peerId);
+
/**
* Add to actor peers
*
* @param name
* @param address
*/
- void addToPeers(String name, String address);
+ void addToPeers(String name, String address, VotingState votingState);
/**
*
* @return the payload version to be used when replicating data
*/
short getPayloadVersion();
+
+ /**
+ * @return an implementation of the RaftPolicy so that the Raft code can be adapted
+ */
+ RaftPolicy getRaftPolicy();
}