public class FlowForwarder extends Object implements ForwardingRulesCommitter<Flow,AddFlowOutput,RemoveFlowOutput,UpdateFlowOutput>
ForwardingRulesCommitter
methods for processing add, update and remove of Flow
.Constructor and Description |
---|
FlowForwarder(SalFlowService salFlowService) |
Modifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<AddFlowOutput>> |
add(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Flow> identifier,
Flow 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<RemoveFlowOutput>> |
remove(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Flow> identifier,
Flow 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<UpdateFlowOutput>> |
update(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Flow> identifier,
Flow original,
Flow update,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> nodeIdent)
Method updates the original DataObject to the update DataObject
in device.
|
public FlowForwarder(SalFlowService salFlowService)
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<RemoveFlowOutput>> remove(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Flow> identifier, Flow removeDataObj, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> nodeIdent)
ForwardingRulesRemoveCommitter
remove
in interface ForwardingRulesRemoveCommitter<Flow,RemoveFlowOutput>
identifier
- - the whole path to DataObjectremoveDataObj
- - DataObject for removingnodeIdent
- - Node InstanceIdentifierpublic com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<UpdateFlowOutput>> update(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Flow> identifier, Flow original, Flow update, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> nodeIdent)
ForwardingRulesUpdateCommitter
update
in interface ForwardingRulesUpdateCommitter<Flow,UpdateFlowOutput>
identifier
- - the whole path to DataObjectoriginal
- - original DataObject (for update)update
- - changed DataObject (contain updates)nodeIdent
- - Node InstanceIdentifierpublic com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<AddFlowOutput>> add(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Flow> identifier, Flow addDataObj, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> nodeIdent)
ForwardingRulesAddCommitter
add
in interface ForwardingRulesAddCommitter<Flow,AddFlowOutput>
identifier
- - the whole path to new DataObjectaddDataObj
- - new DataObjectnodeIdent
- - Node InstanceIdentifierCopyright © 2020 OpenDaylight. All rights reserved.