Upgrade to odlparent 2.0.2
[controller.git] / opendaylight / config / threadpool-config-api / src / main / yang / threadpool.yang
1 // vi: set smarttab et sw=4 tabstop=4:
2 module threadpool {
3     yang-version 1;
4     namespace "urn:opendaylight:params:xml:ns:yang:controller:threadpool";
5     prefix "th";
6
7     import config { prefix config; revision-date 2013-04-05; }
8
9     organization "Cisco Systems, Inc.";
10
11     contact "Robert Varga <rovarga@cisco.com>";
12
13     description
14         "This module contains the base YANG definitions for
15          thread-related services.
16
17         Copyright (c)2013 Cisco Systems, Inc. All rights reserved.;
18
19         This program and the accompanying materials are made available
20         under the terms of the Eclipse Public License v1.0 which
21         accompanies this distribution, and is available at
22         http://www.eclipse.org/legal/epl-v10.html";
23
24     revision "2013-04-09" {
25         description
26             "Added eventbus service.";
27     }
28
29     revision "2013-04-05" {
30         description
31             "Updated with YANG extension for Java class specification.";
32     }
33
34     revision "2013-04-03" {
35         description
36             "Initial revision by Anton Tkacik, Tomas Olvecky and
37              Robert Varga.";
38     }
39
40     identity eventbus {
41         description
42             "Service representing an event bus. The service acts as message
43              router between event producers and event consumers";
44
45         base "config:service-type";
46         config:java-class "com.google.common.eventbus.EventBus";
47     }
48
49     identity threadfactory {
50         description
51             "Service representing a ThreadFactory instance. It is directly
52              useful in Java world, where various library pieces need to create
53              threads and you may want to inject a customized thread
54              implementation.";
55
56         base "config:service-type";
57         config:java-class "java.util.concurrent.ThreadFactory";
58     }
59
60     identity threadpool {
61         description
62             "A simple pool of threads able to execute work.";
63
64         base "config:service-type";
65         config:java-class "org.opendaylight.controller.config.threadpool.ThreadPool";
66     }
67
68     identity scheduled-threadpool {
69         description
70             "An extension of the simple pool of threads able to schedule
71              work to be executed at some point in time.";
72
73         base "threadpool";
74         config:java-class "org.opendaylight.controller.config.threadpool.ScheduledThreadPool";
75     }
76 }