b09ce5b28ca3fccfb66a2b8c591c50a8efea1c54
[controller.git] / opendaylight / config / threadpool-config-impl / src / main / yang / threadpool-impl-fixed.yang
1 module threadpool-impl-fixed {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:controller:threadpool:impl:fixed";
4     prefix "th-java-fixed";
5
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; }
9
10     organization "Cisco Systems, Inc.";
11
12     contact "Robert Varga <rovarga@cisco.com>";
13
14     description
15         "This module contains the base YANG definitions for
16          thread services pure Java implementation.
17
18         Copyright (c)2013 Cisco Systems, Inc. All rights reserved.;
19
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";
24
25     revision "2013-12-01" {
26         description
27             "Initial revision";
28     }
29
30
31     identity threadpool-fixed {
32         base config:module-type;
33         config:provided-service th:threadpool;
34         config:java-name-prefix FixedThreadPool;
35     }
36
37     augment "/config:modules/config:module/config:configuration" {
38         case threadpool-fixed {
39             when "/config:modules/config:module/config:type = 'threadpool-fixed'";
40             leaf max-thread-count {
41                 type uint16;
42             }
43
44             container threadFactory {
45                 uses config:service-ref {
46                     refine type {
47                         //mandatory true;
48                         config:required-identity th:threadfactory;
49                     }
50                 }
51             }
52         }
53     }
54 }
55