1 <?xml version="1.0" encoding="UTF-8"?>
2 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
3 xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
4 xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.2.0">
6 <cm:property-placeholder persistent-id="org.opendaylight.controller.cluster.datastore.broker" update-strategy="none">
7 <cm:default-properties>
8 <cm:property name="max-data-broker-future-callback-queue-size" value="1000"/>
9 <cm:property name="max-data-broker-future-callback-pool-size" value="20"/>
10 </cm:default-properties>
11 </cm:property-placeholder>
13 <odl:static-reference id="schemaService" interface="org.opendaylight.mdsal.dom.api.DOMSchemaService" />
15 <!-- Datastore properties -->
16 <reference id="actorSystemProvider" interface="org.opendaylight.controller.cluster.ActorSystemProvider"/>
17 <reference id="introspectorFactory" interface="org.opendaylight.controller.cluster.datastore.DatastoreContextIntrospectorFactory"/>
18 <reference id="datastoreSnapshotRestore" interface="org.opendaylight.controller.cluster.datastore.DatastoreSnapshotRestore"/>
19 <reference id="fileModuleShardConfigProvider" interface="org.opendaylight.controller.cluster.datastore.config.ModuleShardConfigProvider"/>
21 <cm:cm-properties id="datastoreProps" persistent-id="org.opendaylight.controller.cluster.datastore"/>
23 <!-- Distributed Config Datastore -->
24 <bean id="introspectorConfig" factory-ref="introspectorFactory" factory-method="newInstance">
25 <argument type="org.opendaylight.mdsal.common.api.LogicalDatastoreType" value="CONFIGURATION"/>
28 <bean id="updaterConfig" class="org.opendaylight.controller.cluster.datastore.DatastoreContextPropertiesUpdater">
29 <cm:managed-properties persistent-id="org.opendaylight.controller.cluster.datastore" update-strategy="component-managed" update-method="update"/>
30 <argument ref="introspectorConfig"/>
31 <argument ref="datastoreProps"/>
34 <bean id="configDatastore" class="org.opendaylight.controller.cluster.datastore.DistributedDataStoreFactory"
35 factory-method="createInstance" destroy-method="close">
36 <argument ref="schemaService"/>
38 <bean factory-ref="introspectorConfig" factory-method="getContext" />
40 <argument ref="datastoreSnapshotRestore"/>
41 <argument ref="actorSystemProvider"/>
42 <argument ref="introspectorConfig"/>
43 <argument ref="updaterConfig"/>
46 <service ref="configDatastore" odl:type="distributed-config">
48 <value>org.opendaylight.controller.cluster.datastore.DistributedDataStoreInterface</value>
52 <!-- Distributed Operational Datastore -->
54 <bean id="configurationImpl" class="org.opendaylight.controller.cluster.datastore.config.ConfigurationImpl">
55 <argument ref="fileModuleShardConfigProvider"/>
58 <bean id="introspectorOper" factory-ref="introspectorFactory" factory-method="newInstance">
59 <argument type="org.opendaylight.mdsal.common.api.LogicalDatastoreType" value="OPERATIONAL"/>
62 <bean id="updaterOper" class="org.opendaylight.controller.cluster.datastore.DatastoreContextPropertiesUpdater">
63 <cm:managed-properties persistent-id="org.opendaylight.controller.cluster.datastore" update-strategy="component-managed" update-method="update"/>
64 <argument ref="introspectorOper"/>
65 <argument ref="datastoreProps"/>
68 <bean id="operDatastore" class="org.opendaylight.controller.cluster.datastore.DistributedDataStoreFactory"
69 factory-method="createInstance" destroy-method="close">
70 <argument ref="schemaService"/>
72 <bean factory-ref="introspectorOper" factory-method="getContext" />
74 <argument ref="datastoreSnapshotRestore"/>
75 <argument ref="actorSystemProvider"/>
76 <argument ref="introspectorOper"/>
77 <argument ref="updaterOper"/>
78 <argument ref="configurationImpl" />
81 <service ref="operDatastore" odl:type="distributed-operational">
83 <value>org.opendaylight.controller.cluster.datastore.DistributedDataStoreInterface</value>
87 <!-- Concurrent DOMDataBroker -->
89 <bean id="listenableFutureExecutor" class="org.opendaylight.yangtools.util.concurrent.SpecialExecutors"
90 factory-method="newBlockingBoundedCachedThreadPool">
91 <argument value="${max-data-broker-future-callback-pool-size}"/>
92 <argument value="${max-data-broker-future-callback-queue-size}"/>
93 <argument value="CommitFutures"/>
95 <!-- We should use a more specific class -->
96 <bean factory-ref="operDatastore" factory-method="getClass"/>
100 <bean id="commitStatsTracker" class="org.opendaylight.yangtools.util.DurationStatisticsTracker"
101 factory-method="createConcurrent"/>
103 <bean id="clusteredDOMDataBroker" class="org.opendaylight.controller.cluster.databroker.ConcurrentDOMDataBroker"
104 destroy-method="close">
107 <entry key="CONFIGURATION" value-ref="configDatastore"/>
108 <entry key="OPERATIONAL" value-ref="operDatastore"/>
111 <argument ref="listenableFutureExecutor"/>
112 <argument ref="commitStatsTracker"/>
115 <service ref="clusteredDOMDataBroker" interface="org.opendaylight.mdsal.dom.api.DOMDataBroker"
118 <!-- JMX beans for the data broker -->
120 <bean id="commitStatsMXBean" class="org.opendaylight.controller.cluster.datastore.jmx.mbeans.CommitStatsMXBeanImpl"
121 init-method="register" destroy-method="unregister">
122 <argument ref="commitStatsTracker"/>
123 <argument value="DOMDataBroker"/>
126 <bean id="threadStatsMXBean" class="org.opendaylight.controller.md.sal.common.util.jmx.ThreadExecutorStatsMXBeanImpl"
127 factory-method="create" destroy-method="unregister">
128 <argument ref="listenableFutureExecutor"/>
129 <argument value="CommitFutureExecutorStats"/>
130 <argument value="DOMDataBroker"/>
133 <!-- CDS shard manager -->
134 <bean id="cdsNodeManager" class="org.opendaylight.controller.cluster.sharding.DistributedShardedDOMDataTree"
136 <argument ref="actorSystemProvider"/>
137 <argument ref="operDatastore"/>
138 <argument ref="configDatastore"/>
141 <service ref="cdsNodeManager" odl:type="default">
143 <value>org.opendaylight.mdsal.dom.api.DOMDataTreeShardingService</value>
144 <value>org.opendaylight.mdsal.dom.api.DOMDataTreeService</value>
145 <value>org.opendaylight.controller.cluster.sharding.DistributedShardFactory</value>