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 Details

    • adaptFlatBatchAddGroup

      public static AddGroupsBatchInput adaptFlatBatchAddGroup(BatchPlanStep planStep, NodeRef node)
      Adapt flat batch add group.
      Parameters:
      planStep - batch step containing changes of the same type
      node - 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 type
      node - 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 type
      node - 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 for convertBatchGroupResult(int) with conversion ListenableFuture.
      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