Class MeterNotificationSupplierImpl

    • Constructor Detail

      • MeterNotificationSupplierImpl

        public MeterNotificationSupplierImpl​(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<Meter> 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 MeterAdded createNotification​(Meter dataTreeItemObject,
                                             org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Meter> path)
        Description copied from interface: NotificationSupplierForItem
        Method produces relevant addItem kind of Notification from data tree item identified by InstanceIdentifier path.
        Parameters:
        dataTreeItemObject - - Data Tree Item object
        path - - Identifier of Data Tree Item
        Returns:
        Notification - relevant API contract Notification
      • updateNotification

        public MeterUpdated updateNotification​(Meter meter,
                                               org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Meter> path)
        Description copied from interface: NotificationSupplierForItem
        Method produces relevant updateItem kind of Notification from data tree item identified by InstanceIdentifier path.
        Parameters:
        meter - - Data Tree Item object
        path - - Identifier of Data Tree Item
        Returns:
        Notification - relevant API contract Notification
      • deleteNotification

        public MeterRemoved deleteNotification​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Meter> path)
        Description copied from interface: NotificationSupplierForItem
        Method produces relevant deleteItem kind of Notification from path InstanceIdentifier to deleted item.
        Parameters:
        path - - Identifier of Data Tree Item
        Returns:
        Notification - relevant API contract Notification