Implement LeastLoadedCandidateSelectionStrategy
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / entityownership / selectionstrategy / FirstCandidateSelectionStrategy.java
index b009c3aff429e29693a7de30abdbb427f92652b2..d86fcbd24967b59282bb3788c5ad53a6f6dbaa3d 100644 (file)
@@ -10,6 +10,7 @@ package org.opendaylight.controller.cluster.datastore.entityownership.selections
 
 import com.google.common.base.Preconditions;
 import java.util.Collection;
+import java.util.Map;
 
 /**
  * The FirstCandidateSelectionStrategy always selects the first viable candidate from the list of candidates
@@ -23,7 +24,7 @@ public class FirstCandidateSelectionStrategy extends AbstractEntityOwnerSelectio
     }
 
     @Override
-    public String newOwner(Collection<String> viableCandidates) {
+    public String newOwner(Collection<String> viableCandidates, Map<String, Long> statistics) {
         Preconditions.checkArgument(viableCandidates.size() > 0, "No viable candidates provided");
         return viableCandidates.iterator().next();
     }