X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-dom-broker%2Fsrc%2Fmain%2Fyang%2Fopendaylight-dom-broker-impl.yang;h=7655a921ec7973e4a6a06ba870cbd06d02e30a56;hb=79d7cc9bdb75fa015c8cadc0bd02314d646f2d57;hp=1a553eab52b6c320f30cfb89034bedadb442514f;hpb=b0d28ac778be8cc62b71170f8efc8e0148f2026a;p=controller.git diff --git a/opendaylight/md-sal/sal-dom-broker/src/main/yang/opendaylight-dom-broker-impl.yang b/opendaylight/md-sal/sal-dom-broker/src/main/yang/opendaylight-dom-broker-impl.yang index 1a553eab52..7655a921ec 100644 --- a/opendaylight/md-sal/sal-dom-broker/src/main/yang/opendaylight-dom-broker-impl.yang +++ b/opendaylight/md-sal/sal-dom-broker/src/main/yang/opendaylight-dom-broker-impl.yang @@ -1,13 +1,15 @@ module opendaylight-sal-dom-broker-impl { yang-version 1; namespace "urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:impl"; - prefix "binding-impl"; + prefix "broker"; import config { prefix config; revision-date 2013-04-05; } + import ietf-yang-types { prefix yang; } import opendaylight-md-sal-dom {prefix sal;} import opendaylight-md-sal-common {prefix common;} import opendaylight-config-dom-datastore {prefix config-dom-store-spi;} import opendaylight-operational-dom-datastore {prefix operational-dom-store-spi;} + import rpc-context { prefix rpcx; revision-date 2013-06-17; } description "Service definition for Binding Aware MD-SAL. @@ -38,17 +40,15 @@ module opendaylight-sal-dom-broker-impl { config:java-name-prefix SchemaServiceImplSingleton; } + typedef max-queue-depth { + type uint32 { + range 1..1073741824; + } + } + augment "/config:modules/config:module/config:configuration" { case dom-broker-impl { when "/config:modules/config:module/config:type = 'dom-broker-impl'"; - container data-store { - uses config:service-ref { - refine type { - mandatory false; - config:required-identity sal:dom-data-store; - } - } - } container async-data-broker { uses config:service-ref { @@ -67,6 +67,24 @@ module opendaylight-sal-dom-broker-impl { } } } + + leaf notification-queue-depth { + description "Maximum number of elements in the notification queue, must be power-of-two."; + type max-queue-depth; + default 65536; + } + leaf notification-queue-spin { + description "Number of milliseconds notification queue should spin for new requests before parking."; + type uint16; + units milliseconds; + default 1; + } + leaf notification-queue-park { + description "Number of milliseconds notification queue should park for new requests before blocking."; + type uint16; + units milliseconds; + default 30; + } } } @@ -117,6 +135,52 @@ module opendaylight-sal-dom-broker-impl { } } + grouping dom-broker-operational { + leaf total-commits { + type uint64; + } + + leaf average-commit { + type uint64; + units ns; + } + + leaf longest-commit-duration { + type uint64; + units ns; + } + + leaf longest-commit-timestamp { + type yang:date-and-time; + } + + leaf shortest-commit-duration { + type uint64; + units ns; + } + + leaf shortest-commit-timestamp { + type yang:date-and-time; + } + + rpcx:rpc-context-instance dom-broker-rpc-ctx; + } + + identity dom-broker-rpc-ctx; + + rpc reset-statistics { + description + "JMX call to clear the toasts-made counter."; + + input { + uses rpcx:rpc-context-ref { + refine context-instance { + rpcx:rpc-context-instance dom-broker-rpc-ctx; + } + } + } + } + augment "/config:modules/config:module/config:configuration" { case dom-inmemory-data-broker { when "/config:modules/config:module/config:type = 'dom-inmemory-data-broker'"; @@ -125,6 +189,14 @@ module opendaylight-sal-dom-broker-impl { } } + augment "/config:modules/config:module/config:state" { + case dom-inmemory-data-broker { + when "/config:modules/config:module/config:type = 'dom-inmemory-data-broker'"; + + uses dom-broker-operational; + } + } + augment "/config:modules/config:module/config:state" { case schema-service-singleton { when "/config:modules/config:module/config:type = 'schema-service-singleton'";