Class BundleFlowForwarder
- java.lang.Object
-
- org.opendaylight.openflowplugin.applications.frm.impl.BundleFlowForwarder
-
- All Implemented Interfaces:
BundleMessagesCommiter<Flow>
public class BundleFlowForwarder extends Object implements BundleMessagesCommiter<Flow>
-
-
Constructor Summary
Constructors Constructor Description BundleFlowForwarder(ForwardingRulesManager forwardingRulesManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<AddBundleMessagesOutput>>add(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Flow> identifier, Flow flow, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> nodeIdent, BundleId bundleId)Method adds the DataObject which is identified by InstanceIdentifier to device.voidremove(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Flow> identifier, Flow flow, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> nodeIdent, BundleId bundleId)Method removes DataObject which is identified by InstanceIdentifier from device.voidupdate(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Flow> identifier, Flow originalFlow, Flow updatedFlow, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> nodeIdent, BundleId bundleId)Method updates the original DataObject to the update DataObject in device.ForwardingRulesManager.java.
-
-
-
Constructor Detail
-
BundleFlowForwarder
public BundleFlowForwarder(ForwardingRulesManager forwardingRulesManager)
-
-
Method Detail
-
remove
public void remove(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Flow> identifier, Flow flow, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> nodeIdent, BundleId bundleId)
Description copied from interface:BundleMessagesCommiterMethod removes DataObject which is identified by InstanceIdentifier from device.- Specified by:
removein interfaceBundleMessagesCommiter<Flow>- Parameters:
identifier- - the whole path to DataObjectflow- - DataObject for removingnodeIdent- Node InstanceIdentifier
-
update
public void update(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Flow> identifier, Flow originalFlow, Flow updatedFlow, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> nodeIdent, BundleId bundleId)
Description copied from interface:BundleMessagesCommiterMethod updates the original DataObject to the update DataObject in device.ForwardingRulesManager.java. Both are identified by same InstanceIdentifier.- Specified by:
updatein interfaceBundleMessagesCommiter<Flow>- Parameters:
identifier- - the whole path to DataObjectoriginalFlow- - original DataObject (for update)updatedFlow- - changed DataObject (contain updates)nodeIdent- Node InstanceIdentifier
-
add
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<AddBundleMessagesOutput>> add(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Flow> identifier, Flow flow, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> nodeIdent, BundleId bundleId)
Description copied from interface:BundleMessagesCommiterMethod adds the DataObject which is identified by InstanceIdentifier to device.- Specified by:
addin interfaceBundleMessagesCommiter<Flow>- Parameters:
identifier- - the whole path to new DataObjectflow- - new DataObjectnodeIdent- Node InstanceIdentifier- Returns:
- A future associated with RPC task.
nullis set to the future if this method does not invoke RPC.
-
-