1 module opendaylight-inmemory-datastore-provider {
4 namespace "urn:opendaylight:params:xml:ns:yang:controller:inmemory-datastore-provider";
5 prefix "inmemory-datastore-provider";
7 import config { prefix config; revision-date 2013-04-05; }
8 import rpc-context { prefix rpcx; revision-date 2013-06-17; }
9 import opendaylight-config-dom-datastore {prefix config-dom-store-spi;}
10 import opendaylight-operational-dom-datastore {prefix operational-dom-store-spi;}
11 import opendaylight-md-sal-dom {prefix sal;}
14 "InMemory datastore provider implementation for config & operational datastore";
16 revision "2014-06-17" {
21 // This is the definition of the service implementation as a module identity.
22 identity inmemory-config-datastore-provider {
23 base config:module-type;
24 config:provided-service config-dom-store-spi:config-dom-datastore;
25 config:java-name-prefix InMemoryConfigDataStoreProvider;
29 // This is the definition of the service implementation as a module identity.
31 identity inmemory-operational-datastore-provider {
32 base config:module-type;
33 config:provided-service operational-dom-store-spi:operational-dom-datastore;
34 config:java-name-prefix InMemoryOperationalDataStoreProvider;
38 grouping datastore-configuration {
39 leaf max-data-change-executor-queue-size {
42 description "The maximum queue size for the data change notification executor.";
45 leaf max-data-change-executor-pool-size {
48 description "The maximum thread pool size for the data change notification executor.";
51 leaf max-data-change-listener-queue-size {
54 description "The maximum queue size for the data change listeners.";
56 leaf max-data-store-executor-queue-size {
59 description "The maximum queue size for the data store executor.";
61 leaf debug-transactions {
64 description "Enable transaction lifecycle debugging.";
68 // Augments the 'configuration' choice node under modules/module.
69 augment "/config:modules/config:module/config:configuration" {
70 case inmemory-config-datastore-provider {
71 when "/config:modules/config:module/config:type = 'inmemory-config-datastore-provider'";
73 container inmemory-config-datastore-provider {
74 container schema-service {
75 uses config:service-ref {
78 config:required-identity sal:schema-service;
82 uses datastore-configuration;
87 // Augments the 'configuration' choice node under modules/module.
88 augment "/config:modules/config:module/config:configuration" {
89 case inmemory-operational-datastore-provider {
90 when "/config:modules/config:module/config:type = 'inmemory-operational-datastore-provider'";
92 container inmemory-operational-datastore-provider {
93 container schema-service {
94 uses config:service-ref {
97 config:required-identity sal:schema-service;
101 uses datastore-configuration;