* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
* 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.config;
import com.google.common.base.Preconditions;
package org.opendaylight.controller.cluster.datastore.config;
import com.google.common.base.Preconditions;
import org.opendaylight.controller.cluster.access.concepts.MemberName;
import org.opendaylight.controller.cluster.datastore.shardstrategy.PrefixShardStrategy;
import org.opendaylight.controller.cluster.datastore.shardstrategy.ShardStrategy;
import org.opendaylight.controller.cluster.access.concepts.MemberName;
import org.opendaylight.controller.cluster.datastore.shardstrategy.PrefixShardStrategy;
import org.opendaylight.controller.cluster.datastore.shardstrategy.ShardStrategy;
Preconditions.checkNotNull(prefix, "prefix should not be null");
Entry<DOMDataTreeIdentifier, PrefixShardConfiguration> bestMatchEntry =
Preconditions.checkNotNull(prefix, "prefix should not be null");
Entry<DOMDataTreeIdentifier, PrefixShardConfiguration> bestMatchEntry =
Preconditions.checkNotNull(config, "PrefixShardConfiguration cannot be null");
addPrefixConfig(config);
allShardNames = ImmutableSet.<String>builder().addAll(allShardNames)
Preconditions.checkNotNull(config, "PrefixShardConfiguration cannot be null");
addPrefixConfig(config);
allShardNames = ImmutableSet.<String>builder().addAll(allShardNames)
Preconditions.checkNotNull(prefix, "Prefix cannot be null");
removePrefixConfig(prefix);
Preconditions.checkNotNull(prefix, "Prefix cannot be null");
removePrefixConfig(prefix);
Preconditions.checkNotNull(prefix, "Prefix cannot be null");
// FIXME using prefix tables like in mdsal will be better
Entry<DOMDataTreeIdentifier, PrefixShardConfiguration> bestMatchEntry =
Preconditions.checkNotNull(prefix, "Prefix cannot be null");
// FIXME using prefix tables like in mdsal will be better
Entry<DOMDataTreeIdentifier, PrefixShardConfiguration> bestMatchEntry =