1 module opendaylight-sal-dom-broker-impl {
3 namespace "urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:impl";
6 import config { prefix config; revision-date 2013-04-05; }
7 import ietf-yang-types { prefix yang; }
8 import opendaylight-md-sal-dom {prefix sal;}
9 import opendaylight-md-sal-common {prefix common;}
10 import opendaylight-config-dom-datastore {prefix config-dom-store-spi;}
11 import opendaylight-operational-dom-datastore {prefix operational-dom-store-spi;}
12 import rpc-context { prefix rpcx; revision-date 2013-06-17; }
15 "Service definition for Binding Aware MD-SAL.
16 Note: The dom-inmemory-data-broker utilizes configurable config-dom-datastore
17 and operation-dom-datastore. If configuration is not done for this stores
18 then it defaults to InMemoryDOMDataStore";
20 revision "2013-10-28" {
25 identity dom-broker-impl {
26 base config:module-type;
27 config:provided-service sal:dom-broker-osgi-registry;
28 config:java-name-prefix DomBrokerImpl;
32 identity dom-inmemory-data-broker {
33 base config:module-type;
34 config:provided-service sal:dom-async-data-broker;
37 identity schema-service-singleton {
38 base config:module-type;
39 config:provided-service sal:schema-service;
40 config:java-name-prefix SchemaServiceImplSingleton;
43 augment "/config:modules/config:module/config:configuration" {
44 case dom-broker-impl {
45 when "/config:modules/config:module/config:type = 'dom-broker-impl'";
47 container async-data-broker {
48 uses config:service-ref {
51 config:required-identity sal:dom-async-data-broker;
56 container root-schema-service {
57 uses config:service-ref {
60 config:required-identity sal:schema-service;
67 grouping dom-broker-config {
68 container schema-service {
69 uses config:service-ref {
72 config:required-identity sal:schema-service;
77 container config-data-store {
78 uses config:service-ref {
81 config:required-identity config-dom-store-spi:config-dom-datastore;
86 container operational-data-store {
87 uses config:service-ref {
90 config:required-identity operational-dom-store-spi:operational-dom-datastore;
95 leaf max-data-broker-future-callback-queue-size {
98 description "The maximum queue size for the data broker's commit future callback executor.";
101 leaf max-data-broker-future-callback-pool-size {
104 description "The maximum thread pool size for the data broker's commit future callback executor.";
107 leaf max-data-broker-commit-queue-size {
110 description "The maximum queue size for the data broker's commit executor.";
114 grouping dom-broker-operational {
119 leaf average-commit {
124 leaf longest-commit-duration {
129 leaf longest-commit-timestamp {
130 type yang:date-and-time;
133 leaf shortest-commit-duration {
138 leaf shortest-commit-timestamp {
139 type yang:date-and-time;
142 rpcx:rpc-context-instance dom-broker-rpc-ctx;
145 identity dom-broker-rpc-ctx;
147 rpc reset-statistics {
149 "JMX call to clear the toasts-made counter.";
152 uses rpcx:rpc-context-ref {
153 refine context-instance {
154 rpcx:rpc-context-instance dom-broker-rpc-ctx;
160 augment "/config:modules/config:module/config:configuration" {
161 case dom-inmemory-data-broker {
162 when "/config:modules/config:module/config:type = 'dom-inmemory-data-broker'";
164 uses dom-broker-config;
168 augment "/config:modules/config:module/config:state" {
169 case dom-inmemory-data-broker {
170 when "/config:modules/config:module/config:type = 'dom-inmemory-data-broker'";
172 uses dom-broker-operational;
176 augment "/config:modules/config:module/config:state" {
177 case schema-service-singleton {
178 when "/config:modules/config:module/config:type = 'schema-service-singleton'";
182 augment "/config:modules/config:module/config:state" {
183 case dom-broker-impl {
184 when "/config:modules/config:module/config:type = 'dom-broker-impl'";
186 uses common:data-state;