1 <?xml version="1.0" encoding="UTF-8"?>
\r
2 <module name="config-threads"
\r
3 xmlns="urn:ietf:params:xml:ns:yang:yin:1"
\r
4 xmlns:th="urn:opendaylight:params:xml:ns:yang:controller:config:threads"
\r
5 xmlns:config="urn:opendaylight:params:xml:ns:yang:controller:config">
\r
6 <yang-version value="1"/>
\r
7 <namespace uri="urn:opendaylight:params:xml:ns:yang:controller:config:threads"/>
\r
9 <import module="config">
\r
10 <prefix value="config"/>
\r
11 <revision-date date="2013-04-05"/>
\r
14 <text>This module contains the base YANG definitions for NS-OS
\r
15 thread-related services.</text>
\r
17 <revision date="2013-04-09">
\r
19 <text>Added eventbus service.</text>
\r
22 <revision date="2013-04-05">
\r
24 <text>Updated with YANG extension for Java class specification.</text>
\r
27 <revision date="2013-04-03">
\r
29 <text>Initial revision</text>
\r
32 <identity name="eventbus">
\r
34 <text>Service representing an event bus. The service acts as message
\r
35 router between event producers and event consumers</text>
\r
37 <base name="config:service-type"/>
\r
38 <config:java-class name="com.google.common.eventbus.EventBus"/>
\r
40 <identity name="threadfactory">
\r
42 <text>Service representing a ThreadFactory instance. It is directly
\r
43 useful in Java world, where various library pieces need to create
\r
44 threads and you may want to inject a customized thread
\r
45 implementation.</text>
\r
47 <base name="config:service-type"/>
\r
48 <config:java-class name="java.util.concurrent.ThreadFactory"/>
\r
50 <identity name="threadpool">
\r
52 <text>A simple pool of threads able to execute work.</text>
\r
54 <base name="config:service-type"/>
\r
55 <config:java-class name="org.opendaylight.controller.config.threadpool.ThreadPool"/>
\r
57 <identity name="scheduled-threadpool">
\r
59 <text>An extension of the simple pool of threads able to schedule
\r
60 work to be executed at some point in time.</text>
\r
62 <base name="threadpool"/>
\r
63 <config:java-class name="org.opendaylight.controller.config.threadpool.ScheduledThreadPool"/>
\r