1 // vi: set smarttab et sw=4 tabstop=4:
4 namespace "urn:opendaylight:params:xml:ns:yang:controller:threadpool";
7 import config { prefix config; revision-date 2013-04-05; }
9 organization "Cisco Systems, Inc.";
11 contact "Robert Varga <rovarga@cisco.com>";
14 "This module contains the base YANG definitions for
15 thread-related services.
17 Copyright (c)2013 Cisco Systems, Inc. All rights reserved.;
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";
24 revision "2013-04-09" {
26 "Added eventbus service.";
29 revision "2013-04-05" {
31 "Updated with YANG extension for Java class specification.";
34 revision "2013-04-03" {
36 "Initial revision by Anton Tkacik, Tomas Olvecky and
42 "Service representing an event bus. The service acts as message
43 router between event producers and event consumers";
45 base "config:service-type";
46 config:java-class "com.google.common.eventbus.EventBus";
49 identity threadfactory {
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
56 base "config:service-type";
57 config:java-class "java.util.concurrent.ThreadFactory";
62 "A simple pool of threads able to execute work.";
64 base "config:service-type";
65 config:java-class "org.opendaylight.controller.config.threadpool.ThreadPool";
68 identity scheduled-threadpool {
70 "An extension of the simple pool of threads able to schedule
71 work to be executed at some point in time.";
74 config:java-class "org.opendaylight.controller.config.threadpool.ScheduledThreadPool";