Bug 4105: Pass ModuleShardConfiguration with CreateShard
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / DistributedDataStoreFactory.java
index ee8ac61ecf6da73a410a1ebc87315389dd715d42..4d3854f9ef4e7dc83bde887ecceb6cf1eda604c0 100644 (file)
@@ -15,8 +15,9 @@ import com.typesafe.config.ConfigFactory;
 import java.util.HashSet;
 import java.util.Set;
 import java.util.concurrent.TimeUnit;
-import org.opendaylight.controller.cluster.datastore.config.ConfigurationReader;
-import org.opendaylight.controller.cluster.datastore.shardstrategy.ShardStrategyFactory;
+import org.opendaylight.controller.cluster.common.actor.AkkaConfigurationReader;
+import org.opendaylight.controller.cluster.datastore.config.Configuration;
+import org.opendaylight.controller.cluster.datastore.config.ConfigurationImpl;
 import org.opendaylight.controller.sal.core.api.model.SchemaService;
 import org.osgi.framework.BundleContext;
 import org.slf4j.Logger;
@@ -46,7 +47,6 @@ public class DistributedDataStoreFactory {
 
         overlay.setListener(dataStore);
 
-        ShardStrategyFactory.setConfiguration(config);
         schemaService.registerSchemaContextListener(dataStore);
 
         dataStore.setCloseable(overlay);
@@ -57,7 +57,7 @@ public class DistributedDataStoreFactory {
     }
 
     private static synchronized final ActorSystem getActorSystem(final BundleContext bundleContext,
-                                                                 ConfigurationReader configurationReader) {
+                                                                 AkkaConfigurationReader configurationReader) {
         if (actorSystem == null) {
             // Create an OSGi bundle classloader for actor system
             BundleDelegatingClassLoader classLoader = new BundleDelegatingClassLoader(bundleContext.getBundle(),