Class GroupNotificationSupplierImpl
- java.lang.Object
-
- org.opendaylight.openflowplugin.applications.notification.supplier.impl.AbstractNotificationSupplierBase<O>
-
- org.opendaylight.openflowplugin.applications.notification.supplier.impl.item.AbstractNotificationSupplierForItem<Group,GroupAdded,GroupUpdated,GroupRemoved>
-
- org.opendaylight.openflowplugin.applications.notification.supplier.impl.item.GroupNotificationSupplierImpl
-
- All Implemented Interfaces:
AutoCloseable
,EventListener
,org.opendaylight.mdsal.binding.api.DataTreeChangeListener<Group>
,NotificationSupplierDefinition<Group>
,NotificationSupplierForItem<Group,GroupAdded,GroupUpdated,GroupRemoved>
public class GroupNotificationSupplierImpl extends AbstractNotificationSupplierForItem<Group,GroupAdded,GroupUpdated,GroupRemoved>
Implementation define a contract betweenGroup
data object andGroupAdded
,GroupUpdated
andGroupRemoved
notifications.
-
-
Field Summary
-
Fields inherited from class org.opendaylight.openflowplugin.applications.notification.supplier.impl.AbstractNotificationSupplierBase
clazz
-
-
Constructor Summary
Constructors Constructor Description GroupNotificationSupplierImpl(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 GroupAdded
createNotification(Group dataTreeItemObject, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Group> path)
Method produces relevant addItem kind ofNotification
from data tree item identified byInstanceIdentifier
path.GroupRemoved
deleteNotification(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Group> path)
Method produces relevant deleteItem kind ofNotification
from pathInstanceIdentifier
to deleted item.org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Group>
getWildCardPath()
Method return wildCardPath for Listener registration and for identify the correct KeyInstanceIdentifier from Data Tree Item in DataStore.GroupUpdated
updateNotification(Group group, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Group> path)
Method produces relevant updateItem kind ofNotification
from data tree item identified byInstanceIdentifier
path.-
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
-
GroupNotificationSupplierImpl
public GroupNotificationSupplierImpl(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
- -NotificationPublishService
db
- -DataBroker
-
-
Method Detail
-
getWildCardPath
public org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Group> getWildCardPath()
Description copied from interface:NotificationSupplierDefinition
Method return wildCardPath for Listener registration and for identify the correct KeyInstanceIdentifier from Data Tree Item in DataStore.- Returns:
InstanceIdentifier
-
createNotification
public GroupAdded createNotification(Group dataTreeItemObject, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Group> path)
Description copied from interface:NotificationSupplierForItem
Method produces relevant addItem kind ofNotification
from data tree item identified byInstanceIdentifier
path.- Parameters:
dataTreeItemObject
- - Data Tree Item objectpath
- - Identifier of Data Tree Item- Returns:
Notification
- relevant API contract Notification
-
updateNotification
public GroupUpdated updateNotification(Group group, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Group> path)
Description copied from interface:NotificationSupplierForItem
Method produces relevant updateItem kind ofNotification
from data tree item identified byInstanceIdentifier
path.- Parameters:
group
- - Data Tree Item objectpath
- - Identifier of Data Tree Item- Returns:
Notification
- relevant API contract Notification
-
deleteNotification
public GroupRemoved deleteNotification(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Group> path)
Description copied from interface:NotificationSupplierForItem
Method produces relevant deleteItem kind ofNotification
from pathInstanceIdentifier
to deleted item.- Parameters:
path
- - Identifier of Data Tree Item- Returns:
Notification
- relevant API contract Notification
-
-