Class FlowUtil
- java.lang.Object
-
- org.opendaylight.openflowplugin.impl.util.FlowUtil
-
public final class FlowUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.common.base.Function<org.apache.commons.lang3.tuple.Pair<org.opendaylight.yangtools.yang.common.RpcResult<AddFlowsBatchOutput>,org.opendaylight.yangtools.yang.common.RpcResult<SendBarrierOutput>>,org.opendaylight.yangtools.yang.common.RpcResult<AddFlowsBatchOutput>>
FLOW_ADD_COMPOSING_TRANSFORM
Attach barrier response to givenRpcResult
<AddFlowsBatchOutput>.static com.google.common.base.Function<org.opendaylight.yangtools.yang.common.RpcResult<List<BatchFailedFlowsOutput>>,org.opendaylight.yangtools.yang.common.RpcResult<AddFlowsBatchOutput>>
FLOW_ADD_TRANSFORM
Gather errors into collection and wrap it intoRpcResult
and propagate allRpcError
.static com.google.common.base.Function<org.apache.commons.lang3.tuple.Pair<org.opendaylight.yangtools.yang.common.RpcResult<RemoveFlowsBatchOutput>,org.opendaylight.yangtools.yang.common.RpcResult<SendBarrierOutput>>,org.opendaylight.yangtools.yang.common.RpcResult<RemoveFlowsBatchOutput>>
FLOW_REMOVE_COMPOSING_TRANSFORM
Attach barrier response to givenRpcResult
<RemoveFlowsBatchOutput>.static com.google.common.base.Function<org.opendaylight.yangtools.yang.common.RpcResult<List<BatchFailedFlowsOutput>>,org.opendaylight.yangtools.yang.common.RpcResult<RemoveFlowsBatchOutput>>
FLOW_REMOVE_TRANSFORM
Gather errors into collection and wrap it intoRpcResult
and propagate allRpcError
.static com.google.common.base.Function<org.apache.commons.lang3.tuple.Pair<org.opendaylight.yangtools.yang.common.RpcResult<UpdateFlowsBatchOutput>,org.opendaylight.yangtools.yang.common.RpcResult<SendBarrierOutput>>,org.opendaylight.yangtools.yang.common.RpcResult<UpdateFlowsBatchOutput>>
FLOW_UPDATE_COMPOSING_TRANSFORM
Attach barrier response to givenRpcResult
<UpdateFlowsBatchOutput>.static com.google.common.base.Function<org.opendaylight.yangtools.yang.common.RpcResult<List<BatchFailedFlowsOutput>>,org.opendaylight.yangtools.yang.common.RpcResult<UpdateFlowsBatchOutput>>
FLOW_UPDATE_TRANSFORM
Gather errors into collection and wrap it intoRpcResult
and propagate allRpcError
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FlowRef
buildFlowPath(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Node> nodePath, org.opendaylight.yangtools.yang.common.Uint8 tableId, FlowId flowId)
Build flow path flow ref.static <O> com.google.common.base.Function<List<org.opendaylight.yangtools.yang.common.RpcResult<O>>,org.opendaylight.yangtools.yang.common.RpcResult<List<BatchFailedFlowsOutput>>>
createCumulatingFunction(Collection<? extends BatchFlowIdGrouping> inputBatchFlows)
Factory method: createsFunction
which keeps info of original inputs (passed to flow-rpc) and processes list of all flow-rpc results.
-
-
-
Field Detail
-
FLOW_REMOVE_COMPOSING_TRANSFORM
public static final com.google.common.base.Function<org.apache.commons.lang3.tuple.Pair<org.opendaylight.yangtools.yang.common.RpcResult<RemoveFlowsBatchOutput>,org.opendaylight.yangtools.yang.common.RpcResult<SendBarrierOutput>>,org.opendaylight.yangtools.yang.common.RpcResult<RemoveFlowsBatchOutput>> FLOW_REMOVE_COMPOSING_TRANSFORM
Attach barrier response to givenRpcResult
<RemoveFlowsBatchOutput>.
-
FLOW_ADD_COMPOSING_TRANSFORM
public static final com.google.common.base.Function<org.apache.commons.lang3.tuple.Pair<org.opendaylight.yangtools.yang.common.RpcResult<AddFlowsBatchOutput>,org.opendaylight.yangtools.yang.common.RpcResult<SendBarrierOutput>>,org.opendaylight.yangtools.yang.common.RpcResult<AddFlowsBatchOutput>> FLOW_ADD_COMPOSING_TRANSFORM
Attach barrier response to givenRpcResult
<AddFlowsBatchOutput>.
-
FLOW_UPDATE_COMPOSING_TRANSFORM
public static final com.google.common.base.Function<org.apache.commons.lang3.tuple.Pair<org.opendaylight.yangtools.yang.common.RpcResult<UpdateFlowsBatchOutput>,org.opendaylight.yangtools.yang.common.RpcResult<SendBarrierOutput>>,org.opendaylight.yangtools.yang.common.RpcResult<UpdateFlowsBatchOutput>> FLOW_UPDATE_COMPOSING_TRANSFORM
Attach barrier response to givenRpcResult
<UpdateFlowsBatchOutput>.
-
FLOW_REMOVE_TRANSFORM
public static final com.google.common.base.Function<org.opendaylight.yangtools.yang.common.RpcResult<List<BatchFailedFlowsOutput>>,org.opendaylight.yangtools.yang.common.RpcResult<RemoveFlowsBatchOutput>> FLOW_REMOVE_TRANSFORM
Gather errors into collection and wrap it intoRpcResult
and propagate allRpcError
.
-
FLOW_ADD_TRANSFORM
public static final com.google.common.base.Function<org.opendaylight.yangtools.yang.common.RpcResult<List<BatchFailedFlowsOutput>>,org.opendaylight.yangtools.yang.common.RpcResult<AddFlowsBatchOutput>> FLOW_ADD_TRANSFORM
Gather errors into collection and wrap it intoRpcResult
and propagate allRpcError
.
-
FLOW_UPDATE_TRANSFORM
public static final com.google.common.base.Function<org.opendaylight.yangtools.yang.common.RpcResult<List<BatchFailedFlowsOutput>>,org.opendaylight.yangtools.yang.common.RpcResult<UpdateFlowsBatchOutput>> FLOW_UPDATE_TRANSFORM
Gather errors into collection and wrap it intoRpcResult
and propagate allRpcError
.
-
-
Method Detail
-
buildFlowPath
public static FlowRef buildFlowPath(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Node> nodePath, org.opendaylight.yangtools.yang.common.Uint8 tableId, FlowId flowId)
Build flow path flow ref.
-
createCumulatingFunction
public static <O> com.google.common.base.Function<List<org.opendaylight.yangtools.yang.common.RpcResult<O>>,org.opendaylight.yangtools.yang.common.RpcResult<List<BatchFailedFlowsOutput>>> createCumulatingFunction(Collection<? extends BatchFlowIdGrouping> inputBatchFlows)
Factory method: createsFunction
which keeps info of original inputs (passed to flow-rpc) and processes list of all flow-rpc results.- Type Parameters:
O
- result container type- Parameters:
inputBatchFlows
- collection of problematic flow-ids wrapped in container of given type <O>- Returns:
- static reusable function
-
-