Class BundleGroupForwarder
- java.lang.Object
-
- org.opendaylight.openflowplugin.applications.frm.impl.BundleGroupForwarder
-
- All Implemented Interfaces:
BundleMessagesCommiter<Group>
public class BundleGroupForwarder extends Object implements BundleMessagesCommiter<Group>
-
-
Constructor Summary
Constructors Constructor Description BundleGroupForwarder(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<Group> identifier, Group group, 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<Group> identifier, Group group, 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<Group> identifier, Group originalGroup, Group updatedGroup, 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
-
BundleGroupForwarder
public BundleGroupForwarder(ForwardingRulesManager forwardingRulesManager)
-
-
Method Detail
-
remove
public void remove(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Group> identifier, Group group, 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<Group>- Parameters:
identifier- - the whole path to DataObjectgroup- - DataObject for removingnodeIdent- Node InstanceIdentifier
-
update
public void update(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Group> identifier, Group originalGroup, Group updatedGroup, 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<Group>- Parameters:
identifier- - the whole path to DataObjectoriginalGroup- - original DataObject (for update)updatedGroup- - 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<Group> identifier, Group group, 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<Group>- Parameters:
identifier- - the whole path to new DataObjectgroup- - new DataObjectnodeIdent- Node InstanceIdentifier- Returns:
- A future associated with RPC task.
nullis set to the future if this method does not invoke RPC.
-
-