Class GroupUtil
java.lang.Object
org.opendaylight.openflowplugin.impl.util.GroupUtil
Provides group util methods.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.google.common.base.Function
<org.apache.commons.lang3.tuple.Pair<org.opendaylight.yangtools.yang.common.RpcResult<AddGroupsBatchOutput>, org.opendaylight.yangtools.yang.common.RpcResult<SendBarrierOutput>>, org.opendaylight.yangtools.yang.common.RpcResult<AddGroupsBatchOutput>> static final com.google.common.base.Function
<org.opendaylight.yangtools.yang.common.RpcResult<List<BatchFailedGroupsOutput>>, org.opendaylight.yangtools.yang.common.RpcResult<AddGroupsBatchOutput>> static final com.google.common.base.Function
<org.apache.commons.lang3.tuple.Pair<org.opendaylight.yangtools.yang.common.RpcResult<RemoveGroupsBatchOutput>, org.opendaylight.yangtools.yang.common.RpcResult<SendBarrierOutput>>, org.opendaylight.yangtools.yang.common.RpcResult<RemoveGroupsBatchOutput>> static final com.google.common.base.Function
<org.opendaylight.yangtools.yang.common.RpcResult<List<BatchFailedGroupsOutput>>, org.opendaylight.yangtools.yang.common.RpcResult<RemoveGroupsBatchOutput>> static final com.google.common.base.Function
<org.apache.commons.lang3.tuple.Pair<org.opendaylight.yangtools.yang.common.RpcResult<UpdateGroupsBatchOutput>, org.opendaylight.yangtools.yang.common.RpcResult<SendBarrierOutput>>, org.opendaylight.yangtools.yang.common.RpcResult<UpdateGroupsBatchOutput>> static final com.google.common.base.Function
<org.opendaylight.yangtools.yang.common.RpcResult<List<BatchFailedGroupsOutput>>, org.opendaylight.yangtools.yang.common.RpcResult<UpdateGroupsBatchOutput>> -
Method Summary
Modifier and TypeMethodDescriptionstatic GroupRef
buildGroupPath
(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Node> nodePath, GroupId groupId) Method build the group path.static <O> com.google.common.base.Function
<List<org.opendaylight.yangtools.yang.common.RpcResult<O>>, org.opendaylight.yangtools.yang.common.RpcResult<List<BatchFailedGroupsOutput>>> createCumulatingFunction
(Iterable<? extends Group> inputBatchGroups) static <O> com.google.common.base.Function
<List<org.opendaylight.yangtools.yang.common.RpcResult<O>>, org.opendaylight.yangtools.yang.common.RpcResult<List<BatchFailedGroupsOutput>>> createCumulatingFunction
(Iterable<? extends Group> inputBatchGroups, int sizeOfInputBatch) static List
<org.opendaylight.yangtools.yang.common.Uint32> extractGroupActionsSupportBitmap
(List<ActionType> actionsSupported)
-
Field Details
-
GROUP_ADD_TRANSFORM
public static final com.google.common.base.Function<org.opendaylight.yangtools.yang.common.RpcResult<List<BatchFailedGroupsOutput>>,org.opendaylight.yangtools.yang.common.RpcResult<AddGroupsBatchOutput>> GROUP_ADD_TRANSFORM -
GROUP_ADD_COMPOSING_TRANSFORM
public static final com.google.common.base.Function<org.apache.commons.lang3.tuple.Pair<org.opendaylight.yangtools.yang.common.RpcResult<AddGroupsBatchOutput>,org.opendaylight.yangtools.yang.common.RpcResult<SendBarrierOutput>>, GROUP_ADD_COMPOSING_TRANSFORMorg.opendaylight.yangtools.yang.common.RpcResult<AddGroupsBatchOutput>> -
GROUP_REMOVE_TRANSFORM
public static final com.google.common.base.Function<org.opendaylight.yangtools.yang.common.RpcResult<List<BatchFailedGroupsOutput>>,org.opendaylight.yangtools.yang.common.RpcResult<RemoveGroupsBatchOutput>> GROUP_REMOVE_TRANSFORM -
GROUP_REMOVE_COMPOSING_TRANSFORM
public static final com.google.common.base.Function<org.apache.commons.lang3.tuple.Pair<org.opendaylight.yangtools.yang.common.RpcResult<RemoveGroupsBatchOutput>,org.opendaylight.yangtools.yang.common.RpcResult<SendBarrierOutput>>, GROUP_REMOVE_COMPOSING_TRANSFORMorg.opendaylight.yangtools.yang.common.RpcResult<RemoveGroupsBatchOutput>> -
GROUP_UPDATE_TRANSFORM
public static final com.google.common.base.Function<org.opendaylight.yangtools.yang.common.RpcResult<List<BatchFailedGroupsOutput>>,org.opendaylight.yangtools.yang.common.RpcResult<UpdateGroupsBatchOutput>> GROUP_UPDATE_TRANSFORM -
GROUP_UPDATE_COMPOSING_TRANSFORM
public static final com.google.common.base.Function<org.apache.commons.lang3.tuple.Pair<org.opendaylight.yangtools.yang.common.RpcResult<UpdateGroupsBatchOutput>,org.opendaylight.yangtools.yang.common.RpcResult<SendBarrierOutput>>, GROUP_UPDATE_COMPOSING_TRANSFORMorg.opendaylight.yangtools.yang.common.RpcResult<UpdateGroupsBatchOutput>>
-
-
Method Details
-
buildGroupPath
public static GroupRef buildGroupPath(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Node> nodePath, GroupId groupId) Method build the group path.- Parameters:
nodePath
- - node pathgroupId
- - group Id- Returns:
- instance identifier assembled for given node and group
-
createCumulatingFunction
public static <O> com.google.common.base.Function<List<org.opendaylight.yangtools.yang.common.RpcResult<O>>,org.opendaylight.yangtools.yang.common.RpcResult<List<BatchFailedGroupsOutput>>> createCumulatingFunction(Iterable<? extends Group> inputBatchGroups) -
createCumulatingFunction
public static <O> com.google.common.base.Function<List<org.opendaylight.yangtools.yang.common.RpcResult<O>>,org.opendaylight.yangtools.yang.common.RpcResult<List<BatchFailedGroupsOutput>>> createCumulatingFunction(Iterable<? extends Group> inputBatchGroups, int sizeOfInputBatch) -
extractGroupActionsSupportBitmap
public static List<org.opendaylight.yangtools.yang.common.Uint32> extractGroupActionsSupportBitmap(List<ActionType> actionsSupported)
-