Class FlatBatchGroupAdapters
- java.lang.Object
-
- org.opendaylight.openflowplugin.impl.services.batch.FlatBatchGroupAdapters
-
public final class FlatBatchGroupAdapters extends Object
Transform between FlatBatch API and group batch API.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AddGroupsBatchInput
adaptFlatBatchAddGroup(BatchPlanStep planStep, NodeRef node)
Adapt flat batch add group.static RemoveGroupsBatchInput
adaptFlatBatchRemoveGroup(BatchPlanStep planStep, NodeRef node)
Adapt flat batch remove group.static UpdateGroupsBatchInput
adaptFlatBatchUpdateGroup(BatchPlanStep planStep, NodeRef node)
Adapt flat batch update group.static <T extends BatchGroupOutputListGrouping>
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<ProcessFlatBatchOutput>>convertGroupBatchFutureForChain(com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<T>> resultUpdateGroupFuture, int currentOffset)
Shortcut forconvertBatchGroupResult(int)
with conversionListenableFuture
.
-
-
-
Method Detail
-
adaptFlatBatchAddGroup
public static AddGroupsBatchInput adaptFlatBatchAddGroup(BatchPlanStep planStep, NodeRef node)
Adapt flat batch add group.- Parameters:
planStep
- batch step containing changes of the same typenode
- pointer for RPC routing- Returns:
- input suitable for
.opendaylight.groups.service.rev160315.SalGroupsBatchService#addGroupsBatch(AddGroupsBatchInput)
-
adaptFlatBatchRemoveGroup
public static RemoveGroupsBatchInput adaptFlatBatchRemoveGroup(BatchPlanStep planStep, NodeRef node)
Adapt flat batch remove group.- Parameters:
planStep
- batch step containing changes of the same typenode
- pointer for RPC routing- Returns:
- input suitable for
.opendaylight.groups.service.rev160315.SalGroupsBatchService#removeGroupsBatch(RemoveGroupsBatchInput)
-
adaptFlatBatchUpdateGroup
public static UpdateGroupsBatchInput adaptFlatBatchUpdateGroup(BatchPlanStep planStep, NodeRef node)
Adapt flat batch update group.- Parameters:
planStep
- batch step containing changes of the same typenode
- pointer for RPC routing- Returns:
- input suitable for
.opendaylight.groups.service.rev160315.SalGroupsBatchService#updateGroupsBatch(UpdateGroupsBatchInput)
-
convertGroupBatchFutureForChain
public static <T extends BatchGroupOutputListGrouping> com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<ProcessFlatBatchOutput>> convertGroupBatchFutureForChain(com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<T>> resultUpdateGroupFuture, int currentOffset)
Shortcut forconvertBatchGroupResult(int)
with conversionListenableFuture
.- Type Parameters:
T
- exact type of batch flow output- Parameters:
resultUpdateGroupFuture
- batch group 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
-
-