Class FlatBatchFlowAdapters
java.lang.Object
org.opendaylight.openflowplugin.impl.services.batch.FlatBatchFlowAdapters
Transform between FlatBatch API and flow batch API.
-
Method Summary
Modifier and TypeMethodDescriptionstatic AddFlowsBatchInput
adaptFlatBatchAddFlow
(BatchPlanStep planStep, NodeRef node) Adapt flat batch add flow.static RemoveFlowsBatchInput
adaptFlatBatchRemoveFlow
(BatchPlanStep planStep, NodeRef node) Adapt flat batch remove flow.static UpdateFlowsBatchInput
adaptFlatBatchUpdateFlow
(BatchPlanStep planStep, NodeRef node) Adapt flat batch update flow.static <T extends BatchFlowOutputListGrouping>
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<ProcessFlatBatchOutput>> convertFlowBatchFutureForChain
(com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<T>> resultUpdateFlowFuture, int currentOffset) Shortcut forconvertBatchFlowResult(int)
with conversionListenableFuture
.
-
Method Details
-
adaptFlatBatchAddFlow
Adapt flat batch add flow.- Parameters:
planStep
- batch step containing changes of the same typenode
- pointer for RPC routing- Returns:
- input suitable for
invalid reference
.opendaylight.flows.service.rev160314.SalFlowsBatchService#addFlowsBatch(AddFlowsBatchInput)
-
adaptFlatBatchRemoveFlow
Adapt flat batch remove flow.- Parameters:
planStep
- batch step containing changes of the same typenode
- pointer for RPC routing- Returns:
- input suitable for
invalid reference
.opendaylight.flows.service.rev160314.SalFlowsBatchService#removeFlowsBatch(RemoveFlowsBatchInput)
-
adaptFlatBatchUpdateFlow
Adapt flat batch update flow.- Parameters:
planStep
- batch step containing changes of the same typenode
- pointer for RPC routing- Returns:
- input suitable for
invalid reference
.opendaylight.flows.service.rev160314.SalFlowsBatchService#updateFlowsBatch(UpdateFlowsBatchInput)
-
convertFlowBatchFutureForChain
public static <T extends BatchFlowOutputListGrouping> com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<ProcessFlatBatchOutput>> convertFlowBatchFutureForChain(com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<T>> resultUpdateFlowFuture, int currentOffset) Shortcut forconvertBatchFlowResult(int)
with conversionListenableFuture
.- Type Parameters:
T
- exact type of batch flow output- Parameters:
resultUpdateFlowFuture
- batch flow rpc-result (add/remove/update)currentOffset
- offset of current batch plan step with respect to entire chain of steps- Returns:
- ListenableFuture with converted result
ProcessFlatBatchOutput
-