From: Jakub Morvay Date: Fri, 3 Mar 2017 11:32:17 +0000 (+0100) Subject: BUG-2138: Create blueprint wiring for cds shard manager. X-Git-Tag: release/carbon~125 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=78fb550781389291d0d5142a098385c30dfd291d BUG-2138: Create blueprint wiring for cds shard manager. Change-Id: I504c294db111944c8e2047e58c3e1ef1aa81aee8 Signed-off-by: Jakub Morvay --- diff --git a/opendaylight/md-sal/sal-distributed-datastore/pom.xml b/opendaylight/md-sal/sal-distributed-datastore/pom.xml index d42b3469d1..beb396aa71 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/pom.xml +++ b/opendaylight/md-sal/sal-distributed-datastore/pom.xml @@ -233,6 +233,7 @@ org.opendaylight.controller.cluster.datastore.messages; org.opendaylight.controller.cluster.datastore.persisted; org.opendaylight.controller.cluster.datastore.utils; + org.opendaylight.controller.cluster.sharding; !*snappy; diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/DistributedShardedDOMDataTree.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/DistributedShardedDOMDataTree.java index 6e53a27912..9726a986c1 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/DistributedShardedDOMDataTree.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/DistributedShardedDOMDataTree.java @@ -184,8 +184,11 @@ public class DistributedShardedDOMDataTree implements DOMDataTreeService, DOMDat * Finally, we need to be sure that default shards for both operational and * configuration data stores are up and running and we have distributed * shards frontend created for them. + * + *

+ * This is intended to be invoked by blueprint as initialization method. */ - void init() { + public void init() { // create our writers to the configuration try { LOG.debug("{} - starting config shard lookup.", diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/resources/org/opendaylight/blueprint/clustered-datastore.xml b/opendaylight/md-sal/sal-distributed-datastore/src/main/resources/org/opendaylight/blueprint/clustered-datastore.xml index d0c8b78c31..57817abaf6 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/resources/org/opendaylight/blueprint/clustered-datastore.xml +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/resources/org/opendaylight/blueprint/clustered-datastore.xml @@ -126,4 +126,21 @@ + + + + + + + + + + + org.opendaylight.mdsal.dom.api.DOMDataTreeShardingService + org.opendaylight.mdsal.dom.api.DOMDataTreeService + org.opendaylight.controller.cluster.sharding.DistributedShardFactory + + + \ No newline at end of file