Class GroupStatNotificationSupplierImpl
- java.lang.Object
-
- org.opendaylight.openflowplugin.applications.notification.supplier.impl.AbstractNotificationSupplierBase<O>
-
- org.opendaylight.openflowplugin.applications.notification.supplier.impl.item.stat.AbstractNotificationSupplierForItemStat<GroupStatistics,GroupStatisticsUpdated>
-
- org.opendaylight.openflowplugin.applications.notification.supplier.impl.item.stat.GroupStatNotificationSupplierImpl
-
- All Implemented Interfaces:
AutoCloseable,EventListener,org.opendaylight.mdsal.binding.api.DataTreeChangeListener<GroupStatistics>,NotificationSupplierDefinition<GroupStatistics>,NotificationSupplierForItemStat<GroupStatistics,GroupStatisticsUpdated>
public class GroupStatNotificationSupplierImpl extends AbstractNotificationSupplierForItemStat<GroupStatistics,GroupStatisticsUpdated>
Implementation define a contract betweenGroupStatisticsdata object andGroupStatisticsUpdatednotification.
-
-
Field Summary
-
Fields inherited from class org.opendaylight.openflowplugin.applications.notification.supplier.impl.AbstractNotificationSupplierBase
clazz
-
-
Constructor Summary
Constructors Constructor Description GroupStatNotificationSupplierImpl(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 GroupStatisticsUpdatedcreateNotification(GroupStatistics groupStatistics, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<GroupStatistics> path)Method produces relevant Statistics kind ofNotificationfrom statistics data tree item identified byInstanceIdentifierpath.org.opendaylight.yangtools.yang.binding.InstanceIdentifier<GroupStatistics>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.item.stat.AbstractNotificationSupplierForItemStat
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
-
GroupStatNotificationSupplierImpl
public GroupStatNotificationSupplierImpl(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<GroupStatistics> 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 GroupStatisticsUpdated createNotification(GroupStatistics groupStatistics, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<GroupStatistics> path)
Description copied from interface:NotificationSupplierForItemStatMethod produces relevant Statistics kind ofNotificationfrom statistics data tree item identified byInstanceIdentifierpath.- Parameters:
groupStatistics- - Statistics Data Tree Itempath- - Identifier of Data Tree Item- Returns:
Notification- relevant API contract Notification
-
-