Class NodeNotificationSupplierImpl
- java.lang.Object
 - 
- org.opendaylight.openflowplugin.applications.notification.supplier.impl.AbstractNotificationSupplierBase<O>
 - 
- org.opendaylight.openflowplugin.applications.notification.supplier.impl.AbstractNotificationSupplierForItemRoot<FlowCapableNode,org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeUpdated,org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRemoved>
 - 
- org.opendaylight.openflowplugin.applications.notification.supplier.impl.NodeNotificationSupplierImpl
 
 
 
 
- 
- All Implemented Interfaces:
 AutoCloseable,EventListener,org.opendaylight.mdsal.binding.api.DataTreeChangeListener<FlowCapableNode>,NotificationSupplierDefinition<FlowCapableNode>,NotificationSupplierForItemRoot<FlowCapableNode,org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeUpdated,org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRemoved>
public class NodeNotificationSupplierImpl extends AbstractNotificationSupplierForItemRoot<FlowCapableNode,org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeUpdated,org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRemoved>
Implementation define a contract betweenFlowCapableNodedata object andNodeUpdatedandNodeRemovednotifications. 
- 
- 
Field Summary
- 
Fields inherited from class org.opendaylight.openflowplugin.applications.notification.supplier.impl.AbstractNotificationSupplierBase
clazz 
 - 
 
- 
Constructor Summary
Constructors Constructor Description NodeNotificationSupplierImpl(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 org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeUpdatedcreateNotification(FlowCapableNode flowCapableNode, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> ii)Method produces relevant addItem kind ofNotificationfrom data tree item identified byInstanceIdentifierpath.org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRemoveddeleteNotification(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> path)Method produces relevant deleteItem kind ofNotificationfrom pathInstanceIdentifierto deleted item.org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode>getWildCardPath()Method return wildCardPath for Listener registration and for identify the correct KeyInstanceIdentifier from Data Tree Item in DataStore.- 
Methods inherited from class org.opendaylight.openflowplugin.applications.notification.supplier.impl.AbstractNotificationSupplierForItemRoot
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
- 
NodeNotificationSupplierImpl
public NodeNotificationSupplierImpl(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<FlowCapableNode> 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 org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeUpdated createNotification(FlowCapableNode flowCapableNode, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> ii)
Description copied from interface:NotificationSupplierForItemRootMethod produces relevant addItem kind ofNotificationfrom data tree item identified byInstanceIdentifierpath.- Parameters:
 flowCapableNode- - Data Tree Item objectii- - Identifier of Data Tree Item- Returns:
 Notification- relevant API contract Notification
 
- 
deleteNotification
public org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRemoved deleteNotification(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> path)
Description copied from interface:NotificationSupplierForItemRootMethod produces relevant deleteItem kind ofNotificationfrom pathInstanceIdentifierto deleted item.- Parameters:
 path- - Identifier of Data Tree Item- Returns:
 Notification- relevant API contract Notification
 
 - 
 
 -