Class GroupForwarder
java.lang.Object
org.opendaylight.openflowplugin.applications.frsync.impl.strategy.GroupForwarder
- All Implemented Interfaces:
ForwardingRulesAddCommitter<Group,
,AddGroupOutput> ForwardingRulesCommitter<Group,
,AddGroupOutput, RemoveGroupOutput, UpdateGroupOutput> ForwardingRulesRemoveCommitter<Group,
,RemoveGroupOutput> ForwardingRulesUpdateCommitter<Group,
UpdateGroupOutput>
public class GroupForwarder
extends Object
implements ForwardingRulesCommitter<Group,AddGroupOutput,RemoveGroupOutput,UpdateGroupOutput>
Implements
ForwardingRulesCommitter
methods for processing add, update and remove of Group
.-
Constructor Summary
ConstructorDescriptionGroupForwarder
(org.opendaylight.mdsal.binding.api.RpcService rpcConsumerRegistry) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture
<org.opendaylight.yangtools.yang.common.RpcResult<AddGroupOutput>> add
(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Group> identifier, Group 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<RemoveGroupOutput>> remove
(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Group> identifier, Group 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<UpdateGroupOutput>> update
(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Group> identifier, Group original, Group update, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> nodeIdent) Method updates the original DataObject to the update DataObject in device.
-
Constructor Details
-
GroupForwarder
public GroupForwarder(org.opendaylight.mdsal.binding.api.RpcService rpcConsumerRegistry)
-
-
Method Details
-
remove
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<RemoveGroupOutput>> remove(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Group> identifier, Group 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<Group,
RemoveGroupOutput> - 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<UpdateGroupOutput>> update(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Group> identifier, Group original, Group 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<Group,
UpdateGroupOutput> - 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<AddGroupOutput>> add(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Group> identifier, Group 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<Group,
AddGroupOutput> - Parameters:
identifier
- - the whole path to new DataObjectaddDataObj
- - new DataObjectnodeIdent
- - Node InstanceIdentifier- Returns:
- RpcResult of action
-