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:
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> {
* @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);
}
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) {
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);
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;
@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);
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;
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);
}
}
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;
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;
* 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.
*
/**
* 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();
}
/**
* 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 {
/**
<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>
<scope>test</scope>
</dependency>
</dependencies>
<scope>test</scope>
</dependency>
</dependencies>
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);
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() {
}
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";
+@Deprecated(forRemoval = true)
public class UtilTest {
@Test
public class UtilTest {
@Test