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.";
57 // Augments the 'configuration' choice node under modules/module.
58 augment "/config:modules/config:module/config:configuration" {
59 case inmemory-config-datastore-provider {
60 when "/config:modules/config:module/config:type = 'inmemory-config-datastore-provider'";
62 container inmemory-config-datastore-provider {
63 container schema-service {
64 uses config:service-ref {
67 config:required-identity sal:schema-service;
71 uses datastore-configuration;
76 // Augments the 'configuration' choice node under modules/module.
77 augment "/config:modules/config:module/config:configuration" {
78 case inmemory-operational-datastore-provider {
79 when "/config:modules/config:module/config:type = 'inmemory-operational-datastore-provider'";
81 container inmemory-operational-datastore-provider {
82 container schema-service {
83 uses config:service-ref {
86 config:required-identity sal:schema-service;
90 uses datastore-configuration;