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