Class GroupUtil


  • public final class GroupUtil
    extends Object
    Provides group util methods.
    • Field Detail

      • 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>>,​org.opendaylight.yangtools.yang.common.RpcResult<AddGroupsBatchOutput>> GROUP_ADD_COMPOSING_TRANSFORM
      • 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>>,​org.opendaylight.yangtools.yang.common.RpcResult<RemoveGroupsBatchOutput>> GROUP_REMOVE_COMPOSING_TRANSFORM
      • 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>>,​org.opendaylight.yangtools.yang.common.RpcResult<UpdateGroupsBatchOutput>> GROUP_UPDATE_COMPOSING_TRANSFORM
    • Method Detail

      • buildGroupPath

        public static GroupRef buildGroupPath​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node> nodePath,
                                              GroupId groupId)
        Method build the group path.
        Parameters:
        nodePath - - node path
        groupId - - 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)