Class MeterStatNotificationSupplierImpl

    • Constructor Detail

      • MeterStatNotificationSupplierImpl

        public MeterStatNotificationSupplierImpl​(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<MeterStatistics> 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 MeterStatisticsUpdated createNotification​(MeterStatistics meterStatistics,
                                                         org.opendaylight.yangtools.yang.binding.InstanceIdentifier<MeterStatistics> path)
        Description copied from interface: NotificationSupplierForItemStat
        Method produces relevant Statistics kind of Notification from statistics data tree item identified by InstanceIdentifier path.
        Parameters:
        meterStatistics - - Statistics Data Tree Item
        path - - Identifier of Data Tree Item
        Returns:
        Notification - relevant API contract Notification