Class BarrierUtil
java.lang.Object
org.opendaylight.openflowplugin.impl.util.BarrierUtil
Provides barrier message chaining and factory methods.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<T>>
chainBarrier
(com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<T>> input, NodeRef nodeRef, FlowCapableTransactionService transactionService, com.google.common.base.Function<org.apache.commons.lang3.tuple.Pair<org.opendaylight.yangtools.yang.common.RpcResult<T>, org.opendaylight.yangtools.yang.common.RpcResult<SendBarrierOutput>>, org.opendaylight.yangtools.yang.common.RpcResult<T>> compositeTransform) Chain a barrier message - regardless of previous result and use givenFunction
to combine original result and barrier result.static SendBarrierInput
createSendBarrierInput
(NodeRef nodeRef) Creates barrier input.
-
Method Details
-
chainBarrier
public static <T> com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<T>> chainBarrier(com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<T>> input, NodeRef nodeRef, FlowCapableTransactionService transactionService, com.google.common.base.Function<org.apache.commons.lang3.tuple.Pair<org.opendaylight.yangtools.yang.common.RpcResult<T>, org.opendaylight.yangtools.yang.common.RpcResult<SendBarrierOutput>>, org.opendaylight.yangtools.yang.common.RpcResult<T>> compositeTransform) Chain a barrier message - regardless of previous result and use givenFunction
to combine original result and barrier result.- Type Parameters:
T
- type of input future- Parameters:
input
- future to chain barrier tonodeRef
- target devicetransactionService
- barrier servicecompositeTransform
- composite transform- Returns:
- future holding both results (input and of the barrier)
-
createSendBarrierInput
Creates barrier input.- Parameters:
nodeRef
- rpc routing context- Returns:
- input for
FlowCapableTransactionService.sendBarrier(SendBarrierInput)
-