Bug 6794 - Deprecate eventbus, async-eventbus and fixed-threadpool 38/46138/6
authorAlexis de Talhouët <adetalhouet@inocybe.com>
Fri, 23 Sep 2016 15:46:58 +0000 (11:46 -0400)
committerTom Pantelis <tpanteli@brocade.com>
Fri, 23 Sep 2016 18:55:08 +0000 (18:55 +0000)
Those modules aren't used anymore, I couldn't find any reference of them,
expect some in netconf regarding the fixed-threadpool. But those
reference are coming from big xml test files that I suppose are pretty odl.

This deprecation notice is to warn potential downstream consumer that those
are now deprecated, and that those will be removed in next release, Nitrogen.

Change-Id: I8810b39a632c2d4c678c31bb46b8284aa33593f2
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
opendaylight/config/threadpool-config-impl/src/main/java/org/opendaylight/controller/config/threadpool/util/CloseableAsyncEventBus.java
opendaylight/config/threadpool-config-impl/src/main/java/org/opendaylight/controller/config/threadpool/util/CloseableEventBus.java
opendaylight/config/threadpool-config-impl/src/main/java/org/opendaylight/controller/config/threadpool/util/FixedThreadPoolWrapper.java
opendaylight/config/threadpool-config-impl/src/main/java/org/opendaylight/controller/config/yang/threadpool/impl/AsyncEventBusModule.java
opendaylight/config/threadpool-config-impl/src/main/java/org/opendaylight/controller/config/yang/threadpool/impl/AsyncEventBusModuleFactory.java
opendaylight/config/threadpool-config-impl/src/main/java/org/opendaylight/controller/config/yang/threadpool/impl/EventBusModule.java
opendaylight/config/threadpool-config-impl/src/main/java/org/opendaylight/controller/config/yang/threadpool/impl/EventBusModuleFactory.java
opendaylight/config/threadpool-config-impl/src/main/java/org/opendaylight/controller/config/yang/threadpool/impl/fixed/FixedThreadPoolModule.java
opendaylight/config/threadpool-config-impl/src/main/java/org/opendaylight/controller/config/yang/threadpool/impl/fixed/FixedThreadPoolModuleFactory.java
opendaylight/config/threadpool-config-impl/src/main/yang/threadpool-impl-fixed.yang
opendaylight/config/threadpool-config-impl/src/main/yang/threadpool-impl.yang

index f460cb0..0b8f48c 100644 (file)
@@ -21,6 +21,10 @@ import org.opendaylight.controller.config.yang.threadpool.impl.AsyncEventBusRunt
 /**
  * Closeable version of {@link AsyncEventBus}.
  */
+/**
+ * To be removed in Nitrogen
+ */
+@Deprecated
 public class CloseableAsyncEventBus extends AsyncEventBus implements Closeable {
     private final ThreadPool threadPool;
     private final AsyncEventBusRuntimeRegistration rootRegistration;
index b56f0e4..ab61bfe 100644 (file)
@@ -19,6 +19,10 @@ import org.opendaylight.controller.config.yang.threadpool.impl.EventBusRuntimeRe
 /**
  * Closeable {@link EventBus}.
  */
+/**
+ * To be removed in Nitrogen
+ */
+@Deprecated
 public class CloseableEventBus extends EventBus implements Closeable {
 
     private final EventBusRuntimeRegistration rootRegistration;
index 2dad264..dcb121a 100644 (file)
@@ -19,6 +19,10 @@ import org.opendaylight.controller.config.threadpool.ThreadPool;
  * Implementation of {@link ThreadPool} using fixed number of threads wraps
  * {@link ExecutorService}.
  */
+/**
+ * To be removed in Nitrogen
+ */
+@Deprecated
 public class FixedThreadPoolWrapper implements ThreadPool, Closeable {
 
     private final ThreadPoolExecutor executor;
index 0bdcbbc..5183015 100644 (file)
@@ -20,8 +20,9 @@ package org.opendaylight.controller.config.yang.threadpool.impl;
 import org.opendaylight.controller.config.threadpool.util.CloseableAsyncEventBus;
 
 /**
-*
+* To be removed in Nitrogen
 */
+@Deprecated
 public final class AsyncEventBusModule extends
         org.opendaylight.controller.config.yang.threadpool.impl.AbstractAsyncEventBusModule {
 
index 6c36599..70b7a5f 100644 (file)
@@ -20,8 +20,9 @@ package org.opendaylight.controller.config.yang.threadpool.impl;
 import org.opendaylight.controller.config.threadpool.util.CloseableEventBus;
 
 /**
-*
-*/
+ * To be removed in Nitrogen
+ */
+@Deprecated
 public final class EventBusModule extends
         org.opendaylight.controller.config.yang.threadpool.impl.AbstractEventBusModule {
 
index d06e616..95e11b9 100644 (file)
@@ -21,8 +21,9 @@ import org.opendaylight.controller.config.api.JmxAttributeValidationException;
 import org.opendaylight.controller.config.threadpool.util.FixedThreadPoolWrapper;
 
 /**
-*
-*/
+ * To be removed in Nitrogen
+ */
+@Deprecated
 public final class FixedThreadPoolModule extends org.opendaylight.controller.config.yang.threadpool.impl.fixed.AbstractFixedThreadPoolModule
 {
 
index b09ce5b..85e4c92 100644 (file)
@@ -29,12 +29,14 @@ module threadpool-impl-fixed {
 
 
     identity threadpool-fixed {
+        status deprecated;
         base config:module-type;
         config:provided-service th:threadpool;
         config:java-name-prefix FixedThreadPool;
     }
 
     augment "/config:modules/config:module/config:configuration" {
+        status deprecated;
         case threadpool-fixed {
             when "/config:modules/config:module/config:type = 'threadpool-fixed'";
             leaf max-thread-count {
index cc4af4d..8ae7d88 100644 (file)
@@ -37,9 +37,11 @@ module threadpool-impl {
         base config:module-type;
         config:provided-service th:eventbus;
         config:java-name-prefix EventBus;
+        status deprecated;
     }
 
     augment "/config:modules/config:module/config:configuration" {
+        status deprecated;
         case eventbus {
             when "/config:modules/config:module/config:type = 'eventbus'";
             // No real configuration
@@ -47,6 +49,7 @@ module threadpool-impl {
     }
 
     augment "/config:modules/config:module/config:state" {
+        status deprecated;
         case eventbus {
             when "/config:modules/config:module/config:type = 'eventbus'";
             rpcx:rpc-context-instance "event-bus-rpc";
@@ -59,9 +62,11 @@ module threadpool-impl {
         base config:module-type;
         config:provided-service th:eventbus;
         config:java-name-prefix AsyncEventBus;
+        status deprecated;
     }
 
     augment "/config:modules/config:module/config:configuration" {
+        status deprecated;
         case async-eventbus {
             when "/config:modules/config:module/config:type = 'async-eventbus'";
             container threadpool {
@@ -76,6 +81,7 @@ module threadpool-impl {
     }
 
     augment "/config:modules/config:module/config:state" {
+        status deprecated;
         case async-eventbus {
             when "/config:modules/config:module/config:type = 'async-eventbus'";
             rpcx:rpc-context-instance "event-bus-rpc";