* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.controller.cluster.datastore.utils;
import java.util.Arrays;
import org.opendaylight.controller.cluster.access.concepts.MemberName;
import org.opendaylight.controller.cluster.datastore.config.ConfigurationImpl;
import org.opendaylight.controller.cluster.datastore.config.ModuleConfig;
+import org.opendaylight.controller.cluster.datastore.shardstrategy.ShardStrategy;
+import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier;
public class MockConfiguration extends ConfigurationImpl {
public MockConfiguration() {
public MockConfiguration(final Map<String, List<String>> shardMembers) {
super(configuration -> {
Map<String, ModuleConfig.Builder> retMap = new HashMap<>();
- for(Map.Entry<String, List<String>> e : shardMembers.entrySet()) {
+ for (Map.Entry<String, List<String>> e : shardMembers.entrySet()) {
String shardName = e.getKey();
retMap.put(shardName,
ModuleConfig.builder(shardName).shardConfig(
return retMap;
});
}
+
+ @Override
+ public ShardStrategy getStrategyForPrefix(final DOMDataTreeIdentifier prefix) {
+ return null;
+ }
}