Class MeterForwarder
java.lang.Object
org.opendaylight.openflowplugin.applications.frsync.impl.strategy.MeterForwarder
- All Implemented Interfaces:
ForwardingRulesAddCommitter<Meter,
,AddMeterOutput> ForwardingRulesCommitter<Meter,
,AddMeterOutput, RemoveMeterOutput, UpdateMeterOutput> ForwardingRulesRemoveCommitter<Meter,
,RemoveMeterOutput> ForwardingRulesUpdateCommitter<Meter,
UpdateMeterOutput>
public class MeterForwarder
extends Object
implements ForwardingRulesCommitter<Meter,AddMeterOutput,RemoveMeterOutput,UpdateMeterOutput>
Implements
ForwardingRulesCommitter
methods for processing add, update and remove of Meter
.-
Constructor Summary
ConstructorDescriptionMeterForwarder
(org.opendaylight.mdsal.binding.api.RpcService rpcConsumerRegistry) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture
<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) Method adds the DataObject which is identified by InstanceIdentifier to device.com.google.common.util.concurrent.ListenableFuture
<org.opendaylight.yangtools.yang.common.RpcResult<RemoveMeterOutput>> remove
(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Meter> identifier, Meter removeDataObj, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> nodeIdent) Method removes DataObject which is identified by InstanceIdentifier from device.com.google.common.util.concurrent.ListenableFuture
<org.opendaylight.yangtools.yang.common.RpcResult<UpdateMeterOutput>> update
(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Meter> identifier, Meter original, Meter update, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> nodeIdent) Method updates the original DataObject to the update DataObject in device.
-
Constructor Details
-
MeterForwarder
public MeterForwarder(org.opendaylight.mdsal.binding.api.RpcService rpcConsumerRegistry)
-
-
Method Details
-
remove
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<RemoveMeterOutput>> remove(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Meter> identifier, Meter removeDataObj, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> nodeIdent) Description copied from interface:ForwardingRulesRemoveCommitter
Method removes DataObject which is identified by InstanceIdentifier from device.- Specified by:
remove
in interfaceForwardingRulesRemoveCommitter<Meter,
RemoveMeterOutput> - Parameters:
identifier
- - the whole path to DataObjectremoveDataObj
- - DataObject for removingnodeIdent
- - Node InstanceIdentifier- Returns:
- RpcResult of action
-
update
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<UpdateMeterOutput>> 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:ForwardingRulesUpdateCommitter
Method updates the original DataObject to the update DataObject in device. Both are identified by same InstanceIdentifier- Specified by:
update
in interfaceForwardingRulesUpdateCommitter<Meter,
UpdateMeterOutput> - Parameters:
identifier
- - the whole path to DataObjectoriginal
- - original DataObject (for update)update
- - changed DataObject (contain updates)nodeIdent
- - Node InstanceIdentifier- Returns:
- RpcResult of action
-
add
public com.google.common.util.concurrent.ListenableFuture<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:ForwardingRulesAddCommitter
Method adds the DataObject which is identified by InstanceIdentifier to device.- Specified by:
add
in interfaceForwardingRulesAddCommitter<Meter,
AddMeterOutput> - Parameters:
identifier
- - the whole path to new DataObjectaddDataObj
- - new DataObjectnodeIdent
- - Node InstanceIdentifier- Returns:
- RpcResult of action
-