Pass through the documentation and fixup whitespace and Javadocs a bit.
Change-Id: I0bcbf720d54e1f5a682f923b4cbfb99e13108366
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.netconf.notifications;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.netconf.notifications.rev120206.NetconfCapabilityChange;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.netconf.notifications.rev120206.NetconfSessionEnd;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.netconf.notifications.rev120206.NetconfSessionStart;
-
/**
- * Listener for base netconf notifications defined in https://tools.ietf.org/html/rfc6470.
- * This listener uses generated classes from yang model defined in RFC6470.
- * It alleviates the provisioning of base netconf notifications from the code.
+ * Listener for base NETCONF notifications defined in <a href="https://www.rfc-editor.org/rfc/rfc6470.html">RFC6470</a>.
+ * This listener uses generated classes from YANG model defined in RFC6470. It alleviates the provisioning of base
+ * NETCONF notifications from the code.
*/
public interface BaseNetconfNotificationListener {
-
/**
* Callback used to notify about a change in used capabilities.
*/
*/
void onSessionEnded(NetconfSessionEnd end);
-
// TODO add other base notifications
-
}
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.netconf.notifications;
/**
- * Registration for base notification publisher.
- * This registration allows for publishing of base netconf notifications using generated classes
+ * Registration for base notification publisher. This registration allows for publishing of base netconf notifications
+ * using generated classes
*/
public interface BaseNotificationPublisherRegistration
extends NotificationRegistration, BaseNetconfNotificationListener {
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.netconf.notifications;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.netconf.notification._1._0.rev080714.StreamNameType;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.netmod.notification.rev080714.netconf.streams.Stream;
/**
- * Collector of all notifications. Base or generic
+ * Collector of all notifications. Base or generic.
*/
public interface NetconfNotificationCollector {
-
/**
* Add notification publisher for a particular stream.
*
* <p>
- * Implementations should allow for multiple publishers of a single stream
- * and its up to implementations to decide how to merge metadata (e.g. description)
- * for the same stream when providing information about available stream
- *
+ * Implementations should allow for multiple publishers of a single stream and its up to implementations to decide
+ * how to merge metadata (e.g. description) for the same stream when providing information about available stream.
*/
NotificationPublisherRegistration registerNotificationPublisher(Stream stream);
* This allows for a push model in addition to pull model for retrieving information about available streams.
*
* <p>
- * The listener should receive callbacks for each stream available prior to the registration when its registered
+ * The listener should receive callbacks for each stream available prior to the registration when its registered.
*/
NotificationRegistration registerStreamListener(NetconfNotificationStreamListener listener);
* Simple listener that receives notifications about changes in stream availability.
*/
interface NetconfNotificationStreamListener {
-
/**
* Stream becomes available in the collector (first publisher is registered).
*/
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.netconf.notification._1._0.rev080714.StreamNameType;
/**
- * Generic listener for netconf notifications.
+ * Generic listener for NETCONF notifications.
*/
public interface NetconfNotificationListener {
/**
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.netconf.notifications;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.netconf.notification._1._0.rev080714.StreamNameType;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.netmod.notification.rev080714.netconf.Streams;
public interface NetconfNotificationRegistry {
-
/**
* Add listener for a certain notification type.
*/
* Get all the streams available.
*/
Streams getNotificationPublishers();
-
}
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.netconf.notifications;
/**
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.netconf.notifications;
/**
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.netconf.notifications;
/**
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.netconf.notifications;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.library.rev190104.YangLibraryChange;
* This listener uses generated classes from yang model defined in RFC7895.
*/
public interface YangLibraryNotificationListener {
-
/**
* Callback used to notify about a change in the set of modules and submodules supported by the server.
*
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.netconf.notifications;
/**
- * Registration for yang-library publisher.
- * This registration allows for publishing of yang library notification using generated classes
+ * Registration for yang-library publisher. This registration allows for publishing of YANG library notification using
+ * generated classes
*/
-public interface YangLibraryPublisherRegistration
- extends NotificationRegistration, YangLibraryNotificationListener {
+public interface YangLibraryPublisherRegistration extends NotificationRegistration, YangLibraryNotificationListener {
}