Remove prefix shard leftovers
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / config / Configuration.java
index a2e19579534a844c4b7cea5ee27e03a657582009..4325c7f268a0fb7c6cc0d8edf0d983648d0d19d7 100644 (file)
@@ -8,13 +8,11 @@
 package org.opendaylight.controller.cluster.datastore.config;
 
 import java.util.Collection;
-import java.util.Map;
 import java.util.Set;
 import org.eclipse.jdt.annotation.NonNull;
 import org.eclipse.jdt.annotation.Nullable;
 import org.opendaylight.controller.cluster.access.concepts.MemberName;
 import org.opendaylight.controller.cluster.datastore.shardstrategy.ShardStrategy;
-import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier;
 
 public interface Configuration {
 
@@ -33,11 +31,6 @@ public interface Configuration {
      */
     @Nullable String getShardNameForModule(@NonNull String moduleName);
 
-    /**
-     * Return the shard name corresponding to the prefix, or null if none is configured.
-     */
-    @Nullable String getShardNameForPrefix(@NonNull DOMDataTreeIdentifier prefix);
-
     /**
      * Returns the member replicas for the given shard name.
      */
@@ -58,23 +51,6 @@ public interface Configuration {
      */
     void addModuleShardConfiguration(@NonNull ModuleShardConfiguration config);
 
-    /**
-     * Adds a new configuration for a shard based on prefix.
-     */
-    void addPrefixShardConfiguration(@NonNull PrefixShardConfiguration config);
-
-    /**
-     * Removes a shard configuration for the specified prefix.
-     */
-    void removePrefixShardConfiguration(@NonNull DOMDataTreeIdentifier prefix);
-
-    /**
-     * Returns the configuration for all configured prefix shards.
-     *
-     * @return An immutable copy of the currently configured prefix shards.
-     */
-    Map<DOMDataTreeIdentifier, PrefixShardConfiguration> getAllPrefixShardConfigurations();
-
     /**
      * Returns a unique set of all member names configured for all shards.
      */
@@ -94,9 +70,4 @@ public interface Configuration {
      * Removes the given member as a replica for the given shardName.
      */
     void removeMemberReplicaForShard(String shardName, MemberName memberName);
-
-    /**
-     * Returns the ShardStrategy for the given prefix or null if the prefix is not found.
-     */
-    @Nullable ShardStrategy getStrategyForPrefix(@NonNull DOMDataTreeIdentifier prefix);
 }