Class MeterForwarder

  • All Implemented Interfaces:
    AutoCloseable, EventListener, org.opendaylight.mdsal.binding.api.ClusteredDataTreeChangeListener<Meter>, org.opendaylight.mdsal.binding.api.DataTreeChangeListener<Meter>, ForwardingRulesCommiter<Meter>, org.opendaylight.serviceutils.srm.RecoverableListener

    public class MeterForwarder
    extends AbstractListeningCommiter<Meter>
    MeterForwarder It implements DataTreeChangeListener for WildCardedPath to Meter and ForwardingRulesCommiter interface for methods: add, update and remove Meter processing for DataTreeModification.
    • Method Detail

      • deregisterListener

        public void deregisterListener()
      • close

        public void close()
      • remove

        public void remove​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Meter> identifier,
                           Meter removeDataObj,
                           org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> nodeIdent)
        Description copied from interface: ForwardingRulesCommiter
        Method removes DataObject which is identified by InstanceIdentifier from device.
        Parameters:
        identifier - - the whole path to DataObject
        removeDataObj - - DataObject for removing
        nodeIdent - Node InstanceIdentifier
      • removeWithResult

        public Future<org.opendaylight.yangtools.yang.common.RpcResult<RemoveMeterOutput>> removeWithResult​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Meter> identifier,
                                                                                                            Meter removeDataObj,
                                                                                                            org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> nodeIdent)
      • update

        public void update​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Meter> identifier,
                           Meter original,
                           Meter update,
                           org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> nodeIdent)
        Description copied from interface: ForwardingRulesCommiter
        Method updates the original DataObject to the update DataObject in device. Both are identified by same InstanceIdentifier
        Parameters:
        identifier - - the whole path to DataObject
        original - - original DataObject (for update)
        update - - changed DataObject (contain updates)
        nodeIdent - Node InstanceIdentifier
      • add

        public Future<org.opendaylight.yangtools.yang.common.RpcResult<AddMeterOutput>> add​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Meter> identifier,
                                                                                            Meter addDataObj,
                                                                                            org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> nodeIdent)
        Description copied from interface: ForwardingRulesCommiter
        Method adds the DataObject which is identified by InstanceIdentifier to device.
        Parameters:
        identifier - - the whole path to new DataObject
        addDataObj - - new DataObject
        nodeIdent - Node InstanceIdentifier
        Returns:
        A future associated with RPC task. null is set to the future if this method does not invoke RPC.
      • createStaleMarkEntity

        public void createStaleMarkEntity​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Meter> identifier,
                                          Meter del,
                                          org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> nodeIdent)
        Description copied from interface: ForwardingRulesCommiter
        Method creates stale-marked DataObject which is identified by InstanceIdentifier from device.
        Parameters:
        identifier - - the whole path to DataObject
        del - - DataObject removed. Stale-Mark object to be created from this object
        nodeIdent - Node InstanceIdentifier