2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.controller.cluster.datastore.utils;
11 import com.google.common.base.Optional;
12 import org.opendaylight.controller.cluster.datastore.Configuration;
13 import org.opendaylight.controller.cluster.datastore.shardstrategy.ShardStrategy;
15 import java.util.ArrayList;
16 import java.util.Collections;
17 import java.util.List;
20 public class MockConfiguration implements Configuration{
21 @Override public List<String> getMemberShardNames(String memberName) {
22 List<String> shardNames = new ArrayList<>();
23 shardNames.add("default");
27 @Override public Optional<String> getModuleNameFromNameSpace(
29 return Optional.absent();
33 public Map<String, ShardStrategy> getModuleNameToShardStrategyMap() {
34 return Collections.EMPTY_MAP;
37 @Override public List<String> getShardNamesFromModuleName(
39 return Collections.EMPTY_LIST;