public interface RestConfSBController extends HttpSBController
| Modifier and Type | Method and Description |
|---|---|
void |
addNotificationListener(org.onosproject.net.DeviceId deviceId,
RestconfNotificationEventListener listener)
Registers a listener for notification events that occur to restconf
devices.
|
void |
enableNotifications(org.onosproject.net.DeviceId device,
String request,
String mediaType,
RestconfNotificationEventListener callBackListener)
This method is to be called by whoever is interested to receive
Notifications from a specific device.
|
boolean |
isNotificationEnabled(org.onosproject.net.DeviceId deviceId)
Returns true if a listener has been installed to listen to RESTCONF
notifications sent from a particular device.
|
void |
removeNotificationListener(org.onosproject.net.DeviceId deviceId,
RestconfNotificationEventListener listener)
Unregisters the listener for the device.
|
void enableNotifications(org.onosproject.net.DeviceId device,
String request,
String mediaType,
RestconfNotificationEventListener callBackListener)
device - device to make the request torequest - url of the requestmediaType - format to retrieve the content incallBackListener - method to call when notifications arrivesvoid addNotificationListener(org.onosproject.net.DeviceId deviceId,
RestconfNotificationEventListener listener)
deviceId - identifier of the device to which the listener is attachedlistener - the listener to notifyvoid removeNotificationListener(org.onosproject.net.DeviceId deviceId,
RestconfNotificationEventListener listener)
deviceId - identifier of the device for which the listener
is to be removedlistener - listener to be removedboolean isNotificationEnabled(org.onosproject.net.DeviceId deviceId)
deviceId - identifier of the device from which the notifications
are generated