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