public final class FlatBatchUtil extends Object
Modifier and Type | Method and Description |
---|---|
static List<BatchPlanStep> |
assembleBatchPlan(List<Batch> batches) |
static com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<ProcessFlatBatchOutput>> |
createEmptyRpcBatchResultFuture(boolean status)
Creates empty result future for flat batch service.
|
static void |
markBarriersWhereNeeded(List<BatchPlanStep> batchPlan) |
static com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<ProcessFlatBatchOutput>> |
mergeJobsResultsFutures(List<com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<ProcessFlatBatchOutput>>> firedJobs)
Merge list of Futures with partial results into one ListenableFuture with single result.
|
public static void markBarriersWhereNeeded(List<BatchPlanStep> batchPlan)
public static List<BatchPlanStep> assembleBatchPlan(List<Batch> batches)
public static com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<ProcessFlatBatchOutput>> mergeJobsResultsFutures(List<com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<ProcessFlatBatchOutput>>> firedJobs)
firedJobs
- list of ListenableFutures with RPC results ProcessFlatBatchOutput
public static com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<ProcessFlatBatchOutput>> createEmptyRpcBatchResultFuture(boolean status)
status
- RPC result statusCopyright © 2018 OpenDaylight. All rights reserved.