X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FDistributedDataStoreFactory.java;h=692d1b4954007b33e285b271ebb61952f0bcb0ed;hb=07ba9a998f0b3c3045ed8e31afda5c96de141b3b;hp=f19cb9284cf3ecd81cbe2672c731db3d80af0d3a;hpb=b3d0ded2590e6a5a61055010f7b24e9a943c8d31;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStoreFactory.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStoreFactory.java index f19cb9284c..692d1b4954 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStoreFactory.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStoreFactory.java @@ -8,12 +8,17 @@ package org.opendaylight.controller.cluster.datastore; +import akka.actor.ActorSystem; +import org.opendaylight.controller.cluster.datastore.shardstrategy.ShardStrategyFactory; import org.opendaylight.controller.sal.core.api.model.SchemaService; public class DistributedDataStoreFactory { public static DistributedDataStore createInstance(String name, SchemaService schemaService){ + ActorSystem actorSystem = ActorSystemFactory.getInstance(); + Configuration config = new ConfigurationImpl("module-shards.conf", "modules.conf"); final DistributedDataStore dataStore = - new DistributedDataStore(ActorSystemFactory.getInstance(), name); + new DistributedDataStore(actorSystem, name, new ClusterWrapperImpl(actorSystem),config ); + ShardStrategyFactory.setConfiguration(config); schemaService .registerSchemaServiceListener(dataStore); return dataStore;