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=65a39a60e6c0819fe7f14543c268997a53fddff0;hb=9cd4e7995210f8381892004373acc71c8b3ae7af;hp=6d87271f00d54fcdbf6ca70c27843248b0bbc1b9;hpb=5a9287bb6ddaaa8805939b3b3301f648c03785f4;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 6d87271f00..65a39a60e6 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 @@ -9,19 +9,21 @@ 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){ + public static DistributedDataStore createInstance(String name, SchemaService schemaService, + DistributedDataStoreProperties dataStoreProperties) { + ActorSystem actorSystem = ActorSystemFactory.getInstance(); Configuration config = new ConfigurationImpl("module-shards.conf", "modules.conf"); final DistributedDataStore dataStore = - new DistributedDataStore(actorSystem, name, new ClusterWrapperImpl(actorSystem),config ); - ShardStrategyFactory.setConfiguration(config); - schemaService - .registerSchemaContextListener(dataStore); + new DistributedDataStore(actorSystem, name, new ClusterWrapperImpl(actorSystem), + config, dataStoreProperties ); + ShardStrategyFactory.setConfiguration(config); + schemaService.registerSchemaContextListener(dataStore); return dataStore; - } }