Class FlowNotificationSupplierImpl
- java.lang.Object
-
- org.opendaylight.openflowplugin.applications.notification.supplier.impl.AbstractNotificationSupplierBase<O>
-
- org.opendaylight.openflowplugin.applications.notification.supplier.impl.item.AbstractNotificationSupplierForItem<Flow,FlowAdded,FlowUpdated,FlowRemoved>
-
- org.opendaylight.openflowplugin.applications.notification.supplier.impl.item.FlowNotificationSupplierImpl
-
- All Implemented Interfaces:
AutoCloseable,EventListener,org.opendaylight.mdsal.binding.api.DataTreeChangeListener<Flow>,NotificationSupplierDefinition<Flow>,NotificationSupplierForItem<Flow,FlowAdded,FlowUpdated,FlowRemoved>
public class FlowNotificationSupplierImpl extends AbstractNotificationSupplierForItem<Flow,FlowAdded,FlowUpdated,FlowRemoved>
Implementation define a contract betweenFlowdata object andFlowAdded,FlowUpdatedandFlowRemovednotifications.
-
-
Field Summary
-
Fields inherited from class org.opendaylight.openflowplugin.applications.notification.supplier.impl.AbstractNotificationSupplierBase
clazz
-
-
Constructor Summary
Constructors Constructor Description FlowNotificationSupplierImpl(org.opendaylight.mdsal.binding.api.NotificationPublishService notifProviderService, org.opendaylight.mdsal.binding.api.DataBroker db)Constructor register supplier as DataTreeChangeListener and create wildCarded InstanceIdentifier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlowAddedcreateNotification(Flow dataTreeItemObject, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Flow> path)Method produces relevant addItem kind ofNotificationfrom data tree item identified byInstanceIdentifierpath.FlowRemoveddeleteNotification(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Flow> path)Method produces relevant deleteItem kind ofNotificationfrom pathInstanceIdentifierto deleted item.org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Flow>getWildCardPath()Method return wildCardPath for Listener registration and for identify the correct KeyInstanceIdentifier from Data Tree Item in DataStore.FlowUpdatedupdateNotification(Flow flow, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Flow> path)Method produces relevant updateItem kind ofNotificationfrom data tree item identified byInstanceIdentifierpath.-
Methods inherited from class org.opendaylight.openflowplugin.applications.notification.supplier.impl.item.AbstractNotificationSupplierForItem
add, onDataTreeChanged, remove, update
-
Methods inherited from class org.opendaylight.openflowplugin.applications.notification.supplier.impl.AbstractNotificationSupplierBase
close, createNodeRef, getNodeId, getNodeII, getNodeWildII
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.AutoCloseable
close
-
-
-
-
Constructor Detail
-
FlowNotificationSupplierImpl
public FlowNotificationSupplierImpl(org.opendaylight.mdsal.binding.api.NotificationPublishService notifProviderService, org.opendaylight.mdsal.binding.api.DataBroker db)Constructor register supplier as DataTreeChangeListener and create wildCarded InstanceIdentifier.- Parameters:
notifProviderService- -NotificationPublishServicedb- -DataBroker
-
-
Method Detail
-
getWildCardPath
public org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Flow> getWildCardPath()
Description copied from interface:NotificationSupplierDefinitionMethod return wildCardPath for Listener registration and for identify the correct KeyInstanceIdentifier from Data Tree Item in DataStore.- Returns:
InstanceIdentifier
-
createNotification
public FlowAdded createNotification(Flow dataTreeItemObject, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Flow> path)
Description copied from interface:NotificationSupplierForItemMethod produces relevant addItem kind ofNotificationfrom data tree item identified byInstanceIdentifierpath.- Parameters:
dataTreeItemObject- - Data Tree Item objectpath- - Identifier of Data Tree Item- Returns:
Notification- relevant API contract Notification
-
updateNotification
public FlowUpdated updateNotification(Flow flow, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Flow> path)
Description copied from interface:NotificationSupplierForItemMethod produces relevant updateItem kind ofNotificationfrom data tree item identified byInstanceIdentifierpath.- Parameters:
flow- - Data Tree Item objectpath- - Identifier of Data Tree Item- Returns:
Notification- relevant API contract Notification
-
deleteNotification
public FlowRemoved deleteNotification(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Flow> path)
Description copied from interface:NotificationSupplierForItemMethod produces relevant deleteItem kind ofNotificationfrom pathInstanceIdentifierto deleted item.- Parameters:
path- - Identifier of Data Tree Item- Returns:
Notification- relevant API contract Notification
-
-