2 module opendaylight-inmemory-datastore-provider {
5 namespace "urn:opendaylight:params:xml:ns:yang:controller:inmemory-datastore-provider";
6 prefix "inmemory-datastore-provider";
8 import config { prefix config; revision-date 2013-04-05; }
9 import rpc-context { prefix rpcx; revision-date 2013-06-17; }
10 import opendaylight-config-dom-datastore {prefix config-dom-store-spi;}
11 import opendaylight-operational-dom-datastore {prefix operational-dom-store-spi;}
12 import opendaylight-md-sal-dom {prefix sal;}
15 "InMemory datastore provider implementation for config & operational datastore";
17 revision "2014-06-17" {
22 // This is the definition of the service implementation as a module identity.
23 identity inmemory-config-datastore-provider {
24 base config:module-type;
25 config:provided-service config-dom-store-spi:config-dom-datastore;
26 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;
37 grouping datastore-configuration {
38 leaf max-data-change-executor-queue-size {
41 description "The maximum queue size for the data change notification executor.";
44 leaf max-data-change-executor-pool-size {
47 description "The maximum thread pool size for the data change notification executor.";
50 leaf max-data-change-listener-queue-size {
53 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.";
63 // Augments the 'configuration' choice node under modules/module.
64 augment "/config:modules/config:module/config:configuration" {
65 case inmemory-config-datastore-provider {
66 when "/config:modules/config:module/config:type = 'inmemory-config-datastore-provider'";
68 container inmemory-config-datastore-provider {
69 container schema-service {
70 uses config:service-ref {
73 config:required-identity sal:schema-service;
77 uses datastore-configuration;
82 // Augments the 'configuration' choice node under modules/module.
83 augment "/config:modules/config:module/config:configuration" {
84 case inmemory-operational-datastore-provider {
85 when "/config:modules/config:module/config:type = 'inmemory-operational-datastore-provider'";
87 container inmemory-operational-datastore-provider {
88 container schema-service {
89 uses config:service-ref {
92 config:required-identity sal:schema-service;
96 uses datastore-configuration;