1 module threadpool-impl {
3 namespace "urn:opendaylight:params:xml:ns:yang:controller:threadpool:impl";
6 import threadpool { prefix th; revision-date 2013-04-09; }
7 import config { prefix config; revision-date 2013-04-05; }
8 import rpc-context { prefix rpcx; revision-date 2013-06-17; }
10 organization "Cisco Systems, Inc.";
12 contact "Robert Varga <rovarga@cisco.com>";
15 "This module contains the base YANG definitions for
16 thread services pure Java implementation.
18 Copyright (c)2013 Cisco Systems, Inc. All rights reserved.;
20 This program and the accompanying materials are made available
21 under the terms of the Eclipse Public License v1.0 which
22 accompanies this distribution, and is available at
23 http://www.eclipse.org/legal/epl-v10.html";
25 revision "2013-04-05" {
27 "Updated to work with new anchors.";
30 revision "2013-04-03" {
32 "Initial revision by Anton Tkacik, Tomas Olvecky and
37 base config:module-type;
38 config:provided-service th:eventbus;
39 config:java-name-prefix EventBus;
43 augment "/config:modules/config:module/config:configuration" {
46 when "/config:modules/config:module/config:type = 'eventbus'";
47 // No real configuration
51 augment "/config:modules/config:module/config:state" {
54 when "/config:modules/config:module/config:type = 'eventbus'";
55 rpcx:rpc-context-instance "event-bus-rpc";
59 identity event-bus-rpc;
61 identity async-eventbus {
62 base config:module-type;
63 config:provided-service th:eventbus;
64 config:java-name-prefix AsyncEventBus;
68 augment "/config:modules/config:module/config:configuration" {
71 when "/config:modules/config:module/config:type = 'async-eventbus'";
72 container threadpool {
73 uses config:service-ref {
76 config:required-identity th:threadpool;
83 augment "/config:modules/config:module/config:state" {
86 when "/config:modules/config:module/config:type = 'async-eventbus'";
87 rpcx:rpc-context-instance "event-bus-rpc";
91 rpc get-dead-events-count {
92 config:java-name-prefix countDeadEvents;
94 uses rpcx:rpc-context-ref {
95 refine context-instance {
96 rpcx:rpc-context-instance event-bus-rpc;
107 identity threadfactory-naming {
108 base config:module-type;
109 config:provided-service th:threadfactory;
110 config:java-name-prefix NamingThreadFactory;
113 augment "/config:modules/config:module/config:configuration" {
114 case threadfactory-naming {
115 when "/config:modules/config:module/config:type = 'threadfactory-naming'";