a67f58c760bbdaeda30f2f6b9c32512537ee52c0
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / Configuration.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.controller.cluster.datastore;
10
11 import com.google.common.base.Optional;
12 import org.opendaylight.controller.cluster.datastore.shardstrategy.ShardStrategy;
13
14 import java.util.List;
15 import java.util.Map;
16
17 public interface Configuration {
18     List<String> getMemberShardNames(String memberName);
19     Optional<String> getModuleNameFromNameSpace(String nameSpace);
20     Map<String, ShardStrategy> getModuleNameToShardStrategyMap();
21     List<String> getShardNamesFromModuleName(String moduleName);
22     List<String> getMembersFromShardName(String shardName);
23 }