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.void
remove(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.void
update(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:BundleMessagesCommiter
Method removes DataObject which is identified by InstanceIdentifier from device.- Specified by:
remove
in 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:BundleMessagesCommiter
Method updates the original DataObject to the update DataObject in device.ForwardingRulesManager.java. Both are identified by same InstanceIdentifier.- Specified by:
update
in 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:BundleMessagesCommiter
Method adds the DataObject which is identified by InstanceIdentifier to device.- Specified by:
add
in interfaceBundleMessagesCommiter<Group>
- Parameters:
identifier
- - the whole path to new DataObjectgroup
- - new DataObjectnodeIdent
- Node InstanceIdentifier- Returns:
- A future associated with RPC task.
null
is set to the future if this method does not invoke RPC.
-
-