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;
42 augment "/config:modules/config:module/config:configuration" {
44 when "/config:modules/config:module/config:type = 'eventbus'";
45 // No real configuration
49 augment "/config:modules/config:module/config:state" {
51 when "/config:modules/config:module/config:type = 'eventbus'";
52 rpcx:rpc-context-instance "event-bus-rpc";
56 identity event-bus-rpc;
58 identity async-eventbus {
59 base config:module-type;
60 config:provided-service th:eventbus;
61 config:java-name-prefix AsyncEventBus;
64 augment "/config:modules/config:module/config:configuration" {
66 when "/config:modules/config:module/config:type = 'async-eventbus'";
67 container threadpool {
68 uses config:service-ref {
71 config:required-identity th:threadpool;
78 augment "/config:modules/config:module/config:state" {
80 when "/config:modules/config:module/config:type = 'async-eventbus'";
81 rpcx:rpc-context-instance "event-bus-rpc";
85 rpc get-dead-events-count {
86 config:java-name-prefix countDeadEvents;
88 uses rpcx:rpc-context-ref {
89 refine context-instance {
90 rpcx:rpc-context-instance event-bus-rpc;
101 identity threadfactory-naming {
102 base config:module-type;
103 config:provided-service th:threadfactory;
104 config:java-name-prefix NamingThreadFactory;
107 augment "/config:modules/config:module/config:configuration" {
108 case threadfactory-naming {
109 when "/config:modules/config:module/config:type = 'threadfactory-naming'";