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%2FDistributedDataStore.java;h=4b2013cd287bd4a91d4e6aa06bf61a1402328ca2;hb=bb1891e328feee08ccd29c96034e967f1eeccece;hp=19c93b3dc418d15b0b772d8365122a897b4dff7d;hpb=288a70d15252b3c5fafd202fe7935563f05da9c8;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStore.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStore.java index 19c93b3dc4..4b2013cd28 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStore.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStore.java @@ -74,7 +74,7 @@ public class DistributedDataStore implements DOMStore, SchemaContextListener, Preconditions.checkNotNull(configuration, "configuration should not be null"); Preconditions.checkNotNull(datastoreContextFactory, "datastoreContextFactory should not be null"); - this.type = datastoreContextFactory.getBaseDatastoreContext().getDataStoreType(); + this.type = datastoreContextFactory.getBaseDatastoreContext().getDataStoreName(); String shardManagerId = ShardManagerIdentifier.builder().type(type).build().toString(); @@ -185,7 +185,7 @@ public class DistributedDataStore implements DOMStore, SchemaContextListener, @Override public void onDatastoreContextUpdated(DatastoreContextFactory contextFactory) { - LOG.info("DatastoreContext updated for data store {}", actorContext.getDataStoreType()); + LOG.info("DatastoreContext updated for data store {}", actorContext.getDataStoreName()); actorContext.setDatastoreContext(contextFactory); datastoreConfigMXBean.setContext(contextFactory.getBaseDatastoreContext()); @@ -193,6 +193,8 @@ public class DistributedDataStore implements DOMStore, SchemaContextListener, @Override public void close() { + LOG.info("Closing data store {}", type); + if (datastoreConfigMXBean != null) { datastoreConfigMXBean.unregisterMBean(); } @@ -230,8 +232,8 @@ public class DistributedDataStore implements DOMStore, SchemaContextListener, } } - private ActorRef createShardManager(ActorSystem actorSystem, ShardManager.Builder builder, String shardDispatcher, - String shardManagerId){ + private static ActorRef createShardManager(ActorSystem actorSystem, ShardManager.Builder builder, + String shardDispatcher, String shardManagerId) { Exception lastException = null; for(int i=0;i<100;i++) {