Deprecate messagebus for removal 30/95230/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 19 Feb 2021 06:43:50 +0000 (07:43 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 19 Feb 2021 06:44:24 +0000 (07:44 +0100)
This component is going away, deprecate it.

JIRA: CONTROLLER-1973
Change-Id: I993cf6311c30b37bc64c9d7dbd244d54c26c8da5
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
15 files changed:
opendaylight/md-sal/messagebus-impl/src/main/java/org/opendaylight/controller/messagebus/app/impl/EventSourceRegistrationImpl.java
opendaylight/md-sal/messagebus-impl/src/main/java/org/opendaylight/controller/messagebus/app/impl/EventSourceTopic.java
opendaylight/md-sal/messagebus-impl/src/main/java/org/opendaylight/controller/messagebus/app/impl/EventSourceTopology.java
opendaylight/md-sal/messagebus-impl/src/main/java/org/opendaylight/controller/messagebus/app/impl/OSGiEventSourceRegistry.java
opendaylight/md-sal/messagebus-impl/src/test/java/org/opendaylight/controller/messagebus/app/impl/EventSourceRegistrationImplTest.java
opendaylight/md-sal/messagebus-impl/src/test/java/org/opendaylight/controller/messagebus/app/impl/EventSourceTopicTest.java
opendaylight/md-sal/messagebus-impl/src/test/java/org/opendaylight/controller/messagebus/app/impl/EventSourceTopologyTest.java
opendaylight/md-sal/messagebus-spi/src/main/java/org/opendaylight/controller/messagebus/spi/EventSource.java
opendaylight/md-sal/messagebus-spi/src/main/java/org/opendaylight/controller/messagebus/spi/EventSourceRegistration.java
opendaylight/md-sal/messagebus-spi/src/main/java/org/opendaylight/controller/messagebus/spi/EventSourceRegistry.java
opendaylight/md-sal/messagebus-util/pom.xml
opendaylight/md-sal/messagebus-util/src/main/java/org/opendaylight/controller/messagebus/app/util/TopicDOMNotification.java
opendaylight/md-sal/messagebus-util/src/main/java/org/opendaylight/controller/messagebus/app/util/Util.java
opendaylight/md-sal/messagebus-util/src/test/java/org/opendaylight/controller/messagebus/app/util/TopicDOMNotificationTest.java
opendaylight/md-sal/messagebus-util/src/test/java/org/opendaylight/controller/messagebus/app/util/UtilTest.java

index 89b8a9c313672b3ece5bd1086e5247344bec9402..1779ad85f8c4306931cf9db2bfa0670eea06905a 100644 (file)
@@ -13,6 +13,7 @@ import org.opendaylight.controller.messagebus.spi.EventSource;
 import org.opendaylight.controller.messagebus.spi.EventSourceRegistration;
 import org.opendaylight.yangtools.concepts.AbstractObjectRegistration;
 
 import org.opendaylight.controller.messagebus.spi.EventSourceRegistration;
 import org.opendaylight.yangtools.concepts.AbstractObjectRegistration;
 
+@Deprecated(forRemoval = true)
 class EventSourceRegistrationImpl<T extends EventSource> extends AbstractObjectRegistration<T>
         implements EventSourceRegistration<T> {
 
 class EventSourceRegistrationImpl<T extends EventSource> extends AbstractObjectRegistration<T>
         implements EventSourceRegistration<T> {
 
@@ -24,7 +25,7 @@ class EventSourceRegistrationImpl<T extends EventSource> extends AbstractObjectR
      * @param instance of EventSource that has been registered by
      *     {@link EventSourceRegistryImpl#registerEventSource(Node, EventSource)}
      */
      * @param instance of EventSource that has been registered by
      *     {@link EventSourceRegistryImpl#registerEventSource(Node, EventSource)}
      */
-    EventSourceRegistrationImpl(T instance, EventSourceTopology eventSourceTopology) {
+    EventSourceRegistrationImpl(final T instance, final EventSourceTopology eventSourceTopology) {
         super(instance);
         this.eventSourceTopology = requireNonNull(eventSourceTopology);
     }
         super(instance);
         this.eventSourceTopology = requireNonNull(eventSourceTopology);
     }
index 2deb3570f66f2a1e21b5fb8148d5f728346dd3b5..af2099c08d315a8fc219223de70c8ae5227ebd39 100644 (file)
@@ -42,14 +42,16 @@ import org.opendaylight.yangtools.yang.common.RpcError;
 import org.opendaylight.yangtools.yang.common.RpcResult;
 import org.slf4j.LoggerFactory;
 
 import org.opendaylight.yangtools.yang.common.RpcResult;
 import org.slf4j.LoggerFactory;
 
+@Deprecated(forRemoval = true)
 public final class EventSourceTopic implements DataTreeChangeListener<Node>, AutoCloseable {
     private static final org.slf4j.Logger LOG = LoggerFactory.getLogger(EventSourceTopic.class);
 public final class EventSourceTopic implements DataTreeChangeListener<Node>, AutoCloseable {
     private static final org.slf4j.Logger LOG = LoggerFactory.getLogger(EventSourceTopic.class);
+
+    private final CopyOnWriteArraySet<InstanceIdentifier<?>> joinedEventSources = new CopyOnWriteArraySet<>();
     private final NotificationPattern notificationPattern;
     private final EventSourceService sourceService;
     private final Pattern nodeIdPattern;
     private final TopicId topicId;
     private ListenerRegistration<?> listenerRegistration;
     private final NotificationPattern notificationPattern;
     private final EventSourceService sourceService;
     private final Pattern nodeIdPattern;
     private final TopicId topicId;
     private ListenerRegistration<?> listenerRegistration;
-    private final CopyOnWriteArraySet<InstanceIdentifier<?>> joinedEventSources = new CopyOnWriteArraySet<>();
 
     public static EventSourceTopic create(final NotificationPattern notificationPattern,
             final String nodeIdRegexPattern, final EventSourceTopology eventSourceTopology) {
 
     public static EventSourceTopic create(final NotificationPattern notificationPattern,
             final String nodeIdRegexPattern, final EventSourceTopology eventSourceTopology) {
index 7f53a53ac65275b6b79e3d8d68b1f5f4371e4532..b22eee233e612679da6b766126792f299e426fba 100644 (file)
@@ -57,6 +57,7 @@ import org.opendaylight.yangtools.yang.common.RpcResult;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+@Deprecated(forRemoval = true)
 public class EventSourceTopology implements EventAggregatorService, EventSourceRegistry {
     private static final Logger LOG = LoggerFactory.getLogger(EventSourceTopology.class);
 
 public class EventSourceTopology implements EventAggregatorService, EventSourceRegistry {
     private static final Logger LOG = LoggerFactory.getLogger(EventSourceTopology.class);
 
@@ -79,7 +80,7 @@ public class EventSourceTopology implements EventAggregatorService, EventSourceR
     private final RpcProviderService rpcRegistry;
 
     public EventSourceTopology(final DataBroker dataBroker, final RpcProviderService providerService,
     private final RpcProviderService rpcRegistry;
 
     public EventSourceTopology(final DataBroker dataBroker, final RpcProviderService providerService,
-            RpcConsumerRegistry rpcService) {
+            final RpcConsumerRegistry rpcService) {
 
         this.dataBroker = dataBroker;
         this.rpcRegistry = providerService;
 
         this.dataBroker = dataBroker;
         this.rpcRegistry = providerService;
index 29389ab9ac57e5e4391268444d090bb50ac391df..07e66d247ed14c7369eb752c10ad5e29f9baaa04 100644 (file)
@@ -23,6 +23,7 @@ import org.slf4j.LoggerFactory;
 
 @Beta
 @Component(immediate = true)
 
 @Beta
 @Component(immediate = true)
+@Deprecated(forRemoval = true)
 public final class OSGiEventSourceRegistry implements EventSourceRegistry {
     private static final Logger LOG = LoggerFactory.getLogger(OSGiEventSourceRegistry.class);
 
 public final class OSGiEventSourceRegistry implements EventSourceRegistry {
     private static final Logger LOG = LoggerFactory.getLogger(OSGiEventSourceRegistry.class);
 
index 838d1746ee50aee1aa3d245d2f7f53e192cdb66a..82ef60db69aba64fd75a0acac3eecedd227d9138 100644 (file)
@@ -17,6 +17,7 @@ import org.junit.BeforeClass;
 import org.junit.Test;
 import org.opendaylight.controller.messagebus.spi.EventSource;
 
 import org.junit.Test;
 import org.opendaylight.controller.messagebus.spi.EventSource;
 
+@Deprecated(forRemoval = true)
 public class EventSourceRegistrationImplTest {
 
     EventSourceRegistrationImplLocal eventSourceRegistrationImplLocal;
 public class EventSourceRegistrationImplTest {
 
     EventSourceRegistrationImplLocal eventSourceRegistrationImplLocal;
@@ -42,7 +43,7 @@ public class EventSourceRegistrationImplTest {
 
 
     private class EventSourceRegistrationImplLocal extends EventSourceRegistrationImpl<EventSource> {
 
 
     private class EventSourceRegistrationImplLocal extends EventSourceRegistrationImpl<EventSource> {
-        EventSourceRegistrationImplLocal(EventSource instance, EventSourceTopology eventSourceTopology) {
+        EventSourceRegistrationImplLocal(final EventSource instance, final EventSourceTopology eventSourceTopology) {
             super(instance, eventSourceTopology);
         }
     }
             super(instance, eventSourceTopology);
         }
     }
index d785287f5755b2e40f1e8b2b6c1d1ff9e4e97135..6059d9ab4f889be048dbfd8c4281c7ba18ea625e 100644 (file)
@@ -39,6 +39,7 @@ import org.opendaylight.yangtools.yang.binding.DataObject;
 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
 import org.opendaylight.yangtools.yang.common.RpcResultBuilder;
 
 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
 import org.opendaylight.yangtools.yang.common.RpcResultBuilder;
 
+@Deprecated(forRemoval = true)
 public class EventSourceTopicTest {
 
     EventSourceTopic eventSourceTopic;
 public class EventSourceTopicTest {
 
     EventSourceTopic eventSourceTopic;
index 868dd9d74092ec99ed0e6b0cb82d54cdb9b8dadb..2022869ad9610c8348af2fc429457e0753a495f2 100644 (file)
@@ -49,6 +49,7 @@ import org.opendaylight.yangtools.concepts.Registration;
 import org.opendaylight.yangtools.yang.binding.DataObject;
 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
 
 import org.opendaylight.yangtools.yang.binding.DataObject;
 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
 
+@Deprecated(forRemoval = true)
 public class EventSourceTopologyTest {
 
     EventSourceTopology eventSourceTopology;
 public class EventSourceTopologyTest {
 
     EventSourceTopology eventSourceTopology;
index 3221e1338d52ffcbdf908887056407bac7a4e8b6..6d57b4d95affa4d8cd81e7d5af374f7dbc3ea1a4 100644 (file)
@@ -20,9 +20,8 @@ import org.opendaylight.yangtools.yang.model.api.SchemaPath;
  * EventSourceRegistry will call method JoinTopic to request EventSource to publish notification.
  * Event source must implement method JoinTopic (from superinterface {@link EventSourceService}).
  */
  * EventSourceRegistry will call method JoinTopic to request EventSource to publish notification.
  * Event source must implement method JoinTopic (from superinterface {@link EventSourceService}).
  */
-
+@Deprecated(forRemoval = true)
 public interface EventSource extends EventSourceService, AutoCloseable {
 public interface EventSource extends EventSourceService, AutoCloseable {
-
     /**
      * Identifier of node associated with event source.
      *
     /**
      * Identifier of node associated with event source.
      *
index dd6cc1a166d6ee514816176e609ebcbb022e274b..d885461b487d4347a89df75ff45a77f8fec229e2 100644 (file)
@@ -12,10 +12,9 @@ import org.opendaylight.yangtools.concepts.ObjectRegistration;
 /**
  * Instance of EventSourceRegistration is returned by {@link EventSourceRegistry#registerEventSource(EventSource)}
  * and it is used to unregister EventSource.
 /**
  * Instance of EventSourceRegistration is returned by {@link EventSourceRegistry#registerEventSource(EventSource)}
  * and it is used to unregister EventSource.
- *
  */
  */
+@Deprecated(forRemoval = true)
 public interface EventSourceRegistration<T extends EventSource> extends ObjectRegistration<T> {
 public interface EventSourceRegistration<T extends EventSource> extends ObjectRegistration<T> {
-
     @Override
     void close();
 }
     @Override
     void close();
 }
index bb9761d1ae559d990728441e12fcce41e6c5dd05..1d1980fc36c83779c8364386b3b91681f9aa7f65 100644 (file)
@@ -10,6 +10,7 @@ package org.opendaylight.controller.messagebus.spi;
 /**
  * EventSourceRegistry is used to register {@link EventSource}.
  */
 /**
  * EventSourceRegistry is used to register {@link EventSource}.
  */
+@Deprecated(forRemoval = true)
 public interface EventSourceRegistry extends AutoCloseable {
 
     /**
 public interface EventSourceRegistry extends AutoCloseable {
 
     /**
index e5d617fd43e85ec808a889dd1b03ce604ef4946d..75ba7d0e5d1ba3dc959f5959e4a1832e83a75c92 100644 (file)
@@ -39,7 +39,6 @@ and is available at http://www.eclipse.org/legal/epl-v10.html
         <dependency>
               <groupId>org.glassfish.jersey.test-framework.providers</groupId>
               <artifactId>jersey-test-framework-provider-grizzly2</artifactId>
         <dependency>
               <groupId>org.glassfish.jersey.test-framework.providers</groupId>
               <artifactId>jersey-test-framework-provider-grizzly2</artifactId>
-              <version>2.4</version>
               <scope>test</scope>
         </dependency>
     </dependencies>
               <scope>test</scope>
         </dependency>
     </dependencies>
index 348abad35f6e49679aa2b8c7890342baa9d4717f..7afb381eca4125de5cb2740dc21d08858276f80d 100644 (file)
@@ -13,6 +13,7 @@ import org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.messagebus.even
 import org.opendaylight.yangtools.yang.data.api.schema.ContainerNode;
 import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier.Absolute;
 
 import org.opendaylight.yangtools.yang.data.api.schema.ContainerNode;
 import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier.Absolute;
 
+@Deprecated(forRemoval = true)
 public class TopicDOMNotification implements DOMNotification {
     private static final @NonNull Absolute TOPIC_NOTIFICATION_ID = Absolute.of(TopicNotification.QNAME);
 
 public class TopicDOMNotification implements DOMNotification {
     private static final @NonNull Absolute TOPIC_NOTIFICATION_ID = Absolute.of(TopicNotification.QNAME);
 
index 0b28e55886decc0cd43fffbea87af5b53ad734d1..8546f9a9290646929c7580e016fbf6a65ab0cdf7 100644 (file)
@@ -17,6 +17,7 @@ import org.opendaylight.yangtools.yang.common.RpcResult;
 import org.opendaylight.yangtools.yang.common.RpcResultBuilder;
 import org.opendaylight.yangtools.yang.model.api.SchemaPath;
 
 import org.opendaylight.yangtools.yang.common.RpcResultBuilder;
 import org.opendaylight.yangtools.yang.model.api.SchemaPath;
 
+@Deprecated(forRemoval = true)
 public final class Util {
     private Util() {
     }
 public final class Util {
     private Util() {
     }
index be11b1014a147c4879d2068edc13cfec48234204..fec1f5eb1ddbfd4e553b52f9a890e84a6efcb5fc 100644 (file)
@@ -19,6 +19,7 @@ import org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.messagebus.even
 import org.opendaylight.yangtools.yang.data.api.schema.ContainerNode;
 import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier.Absolute;
 
 import org.opendaylight.yangtools.yang.data.api.schema.ContainerNode;
 import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier.Absolute;
 
+@Deprecated(forRemoval = true)
 public class TopicDOMNotificationTest {
 
     private static final String CONTAINER_NODE_BODY_MOCK_TO_STRING = "containerNodeBodyMock";
 public class TopicDOMNotificationTest {
 
     private static final String CONTAINER_NODE_BODY_MOCK_TO_STRING = "containerNodeBodyMock";
index 1a2d66c7c8f4a9e5af9886a938d438f011f99b21..49a994c4313e7ee62e5f2f7e549201fc267360a4 100644 (file)
@@ -24,6 +24,7 @@ import org.opendaylight.yangtools.yang.model.api.SchemaPath;
  *
  * @author ppalmar
  */
  *
  * @author ppalmar
  */
+@Deprecated(forRemoval = true)
 public class UtilTest {
 
     @Test
 public class UtilTest {
 
     @Test