messagebus-netconf is not used by anyone and has a good number
of deficiencies -- in its implementation as well as in the
framework (from controller).
Deprecate it for removal in the next release.
JIRA: NETCONF-761
Change-Id: I852b23fc30362c4ae609f04da9145580d887eca9
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
15 files changed:
<relativePath>../../parent</relativePath>
</parent>
<relativePath>../../parent</relativePath>
</parent>
- <groupId>org.opendaylight.netconf</groupId>
<artifactId>messagebus-netconf</artifactId>
<artifactId>messagebus-netconf</artifactId>
- <version>1.10.0-SNAPSHOT</version>
<name>${project.artifactId}</name>
<packaging>bundle</packaging>
<name>${project.artifactId}</name>
<packaging>bundle</packaging>
/**
* Topic registration on event-source-status-notification.
*/
/**
* Topic registration on event-source-status-notification.
*/
+@Deprecated(forRemoval = true)
class ConnectionNotificationTopicRegistration extends NotificationTopicRegistration {
private static final Logger LOG = LoggerFactory.getLogger(ConnectionNotificationTopicRegistration.class);
class ConnectionNotificationTopicRegistration extends NotificationTopicRegistration {
private static final Logger LOG = LoggerFactory.getLogger(ConnectionNotificationTopicRegistration.class);
* NetconfEventSource serves as proxy between nodes and messagebus. Subscribers can join topic stream from this source.
* Then they will receive notifications from device that matches pattern specified by topic.
*/
* NetconfEventSource serves as proxy between nodes and messagebus. Subscribers can join topic stream from this source.
* Then they will receive notifications from device that matches pattern specified by topic.
*/
+@Deprecated(forRemoval = true)
public class NetconfEventSource implements EventSource, DOMNotificationListener {
private static final Logger LOG = LoggerFactory.getLogger(NetconfEventSource.class);
public class NetconfEventSource implements EventSource, DOMNotificationListener {
private static final Logger LOG = LoggerFactory.getLogger(NetconfEventSource.class);
* NetconfEventSourceManager implements DataChangeListener. On topology changes, it manages creation,
* updating and removing registrations of event sources.
*/
* NetconfEventSourceManager implements DataChangeListener. On topology changes, it manages creation,
* updating and removing registrations of event sources.
*/
+@Deprecated(forRemoval = true)
public final class NetconfEventSourceManager implements DataTreeChangeListener<Node>, AutoCloseable {
private static final Logger LOG = LoggerFactory.getLogger(NetconfEventSourceManager.class);
public final class NetconfEventSourceManager implements DataTreeChangeListener<Node>, AutoCloseable {
private static final Logger LOG = LoggerFactory.getLogger(NetconfEventSourceManager.class);
/**
* Facade of mounted netconf device.
*/
/**
* Facade of mounted netconf device.
*/
+@Deprecated(forRemoval = true)
class NetconfEventSourceMount {
private static final YangInstanceIdentifier STREAMS_PATH = YangInstanceIdentifier.builder().node(Netconf.QNAME)
.node(Streams.QNAME).build();
class NetconfEventSourceMount {
private static final YangInstanceIdentifier STREAMS_PATH = YangInstanceIdentifier.builder().node(Netconf.QNAME)
.node(Streams.QNAME).build();
/**
* Helper class to keep connection status of netconf node and event source registration object.
*/
/**
* Helper class to keep connection status of netconf node and event source registration object.
*/
+@Deprecated(forRemoval = true)
final class NetconfEventSourceRegistration implements AutoCloseable {
private static final Logger LOG = LoggerFactory.getLogger(NetconfEventSourceRegistration.class);
final class NetconfEventSourceRegistration implements AutoCloseable {
private static final Logger LOG = LoggerFactory.getLogger(NetconfEventSourceRegistration.class);
/**
* Notification topic registration.
*/
/**
* Notification topic registration.
*/
+@Deprecated(forRemoval = true)
abstract class NotificationTopicRegistration implements AutoCloseable {
private static final Logger LOG = LoggerFactory.getLogger(NotificationTopicRegistration.class);
abstract class NotificationTopicRegistration implements AutoCloseable {
private static final Logger LOG = LoggerFactory.getLogger(NotificationTopicRegistration.class);
/**
* Topic registration for notification with specified namespace from stream.
*/
/**
* Topic registration for notification with specified namespace from stream.
*/
+@Deprecated(forRemoval = true)
class StreamNotificationTopicRegistration extends NotificationTopicRegistration {
private static final Logger LOG = LoggerFactory.getLogger(StreamNotificationTopicRegistration.class);
class StreamNotificationTopicRegistration extends NotificationTopicRegistration {
private static final Logger LOG = LoggerFactory.getLogger(StreamNotificationTopicRegistration.class);
import org.opendaylight.mdsal.binding.runtime.spi.BindingRuntimeHelpers;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.netmod.notification.rev080714.Netconf;
import org.opendaylight.mdsal.binding.runtime.spi.BindingRuntimeHelpers;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.netmod.notification.rev080714.Netconf;
+@Deprecated(forRemoval = true)
public abstract class AbstractCodecTest {
static BindingCodecContext SERIALIZER;
public abstract class AbstractCodecTest {
static BindingCodecContext SERIALIZER;
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
import org.opendaylight.yangtools.yang.data.api.schema.DataContainerChild;
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
import org.opendaylight.yangtools.yang.data.api.schema.DataContainerChild;
+@Deprecated(forRemoval = true)
@RunWith(MockitoJUnitRunner.StrictStubs.class)
public class ConnectionNotificationTopicRegistrationTest {
@RunWith(MockitoJUnitRunner.StrictStubs.class)
public class ConnectionNotificationTopicRegistrationTest {
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
+@Deprecated(forRemoval = true)
public class NetconfEventSourceManagerTest extends AbstractCodecTest {
public class NetconfEventSourceManagerTest extends AbstractCodecTest {
private NetconfEventSourceManager netconfEventSourceManager;
private ListenerRegistration<?> listenerRegistrationMock;
private DOMMountPointService domMountPointServiceMock;
private NetconfEventSourceManager netconfEventSourceManager;
private ListenerRegistration<?> listenerRegistrationMock;
private DOMMountPointService domMountPointServiceMock;
import org.opendaylight.yangtools.yang.data.api.schema.LeafNode;
import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
import org.opendaylight.yangtools.yang.data.api.schema.LeafNode;
import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
+@Deprecated(forRemoval = true)
@RunWith(MockitoJUnitRunner.StrictStubs.class)
public class NetconfEventSourceMountTest extends AbstractCodecTest {
public static final String STREAM_1 = "stream-1";
@RunWith(MockitoJUnitRunner.StrictStubs.class)
public class NetconfEventSourceMountTest extends AbstractCodecTest {
public static final String STREAM_1 = "stream-1";
import org.opendaylight.yangtools.yang.model.api.SchemaPath;
import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier.Absolute;
import org.opendaylight.yangtools.yang.model.api.SchemaPath;
import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier.Absolute;
+@Deprecated(forRemoval = true)
@RunWith(MockitoJUnitRunner.StrictStubs.class)
public class NetconfEventSourceTest {
private static final Absolute NOTIFICATION_1_PATH = Absolute.of(QName.create("ns1", "1970-01-15", "not1"));
@RunWith(MockitoJUnitRunner.StrictStubs.class)
public class NetconfEventSourceTest {
private static final Absolute NOTIFICATION_1_PATH = Absolute.of(QName.create("ns1", "1970-01-15", "not1"));
import org.opendaylight.yangtools.yang.data.impl.schema.Builders;
import org.opendaylight.yangtools.yang.data.impl.schema.builder.api.CollectionNodeBuilder;
import org.opendaylight.yangtools.yang.data.impl.schema.Builders;
import org.opendaylight.yangtools.yang.data.impl.schema.builder.api.CollectionNodeBuilder;
+@Deprecated(forRemoval = true)
public final class NetconfTestUtils {
public static final String NOTIFICATION_CAPABILITY_PREFIX = "(urn:ietf:params:xml:ns:netconf:notification";
public final class NetconfTestUtils {
public static final String NOTIFICATION_CAPABILITY_PREFIX = "(urn:ietf:params:xml:ns:netconf:notification";
import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.NodeBuilder;
import org.opendaylight.yangtools.concepts.ListenerRegistration;
import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.NodeBuilder;
import org.opendaylight.yangtools.concepts.ListenerRegistration;
+@Deprecated(forRemoval = true)
@RunWith(MockitoJUnitRunner.StrictStubs.class)
public class StreamNotificationTopicRegistrationTest {
@RunWith(MockitoJUnitRunner.StrictStubs.class)
public class StreamNotificationTopicRegistrationTest {