public final class FlowUtil extends Object
Modifier and Type | Field and 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<Void>>,org.opendaylight.yangtools.yang.common.RpcResult<AddFlowsBatchOutput>> |
FLOW_ADD_COMPOSING_TRANSFORM
Attach barrier response to given
RpcResult <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 into
RpcResult and propagate all RpcError . |
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<Void>>,org.opendaylight.yangtools.yang.common.RpcResult<RemoveFlowsBatchOutput>> |
FLOW_REMOVE_COMPOSING_TRANSFORM
Attach barrier response to given
RpcResult <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 into
RpcResult and propagate all RpcError . |
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<Void>>,org.opendaylight.yangtools.yang.common.RpcResult<UpdateFlowsBatchOutput>> |
FLOW_UPDATE_COMPOSING_TRANSFORM
Attach barrier response to given
RpcResult <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 into
RpcResult and propagate all RpcError . |
Modifier and Type | Method and Description |
---|---|
static FlowRef |
buildFlowPath(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node> nodePath,
short 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(List<? extends BatchFlowIdGrouping> inputBatchFlows)
Factory method: creates
Function which keeps info of original inputs (passed to flow-rpc) and processes
list of all flow-rpc results. |
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<Void>>,org.opendaylight.yangtools.yang.common.RpcResult<RemoveFlowsBatchOutput>> FLOW_REMOVE_COMPOSING_TRANSFORM
RpcResult
<RemoveFlowsBatchOutput>.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<Void>>,org.opendaylight.yangtools.yang.common.RpcResult<AddFlowsBatchOutput>> FLOW_ADD_COMPOSING_TRANSFORM
RpcResult
<AddFlowsBatchOutput>.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<Void>>,org.opendaylight.yangtools.yang.common.RpcResult<UpdateFlowsBatchOutput>> FLOW_UPDATE_COMPOSING_TRANSFORM
RpcResult
<UpdateFlowsBatchOutput>.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
RpcResult
and propagate all RpcError
.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
RpcResult
and propagate all RpcError
.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
RpcResult
and propagate all RpcError
.public static FlowRef buildFlowPath(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node> nodePath, short tableId, FlowId flowId)
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(List<? extends BatchFlowIdGrouping> inputBatchFlows)
Function
which keeps info of original inputs (passed to flow-rpc) and processes
list of all flow-rpc results.O
- result container typeinputBatchFlows
- collection of problematic flow-ids wrapped in container of given type <O>Copyright © 2018 OpenDaylight. All rights reserved.