Class BucketingUtil
java.lang.Object
com.evolveum.midpoint.schema.util.task.BucketingUtil
Methods related to bucketing part of an activity state and activity distribution definition.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic WorkBucketType
findBucketByNumber
(List<WorkBucketType> buckets, int sequentialNumber) static @NotNull WorkBucketType
findBucketByNumberRequired
(List<WorkBucketType> buckets, int sequentialNumber) static @NotNull List<WorkBucketType>
getBuckets
(@NotNull ActivityStateType state) static @NotNull List<WorkBucketType>
getBuckets
(@NotNull TaskActivityStateType taskState, @NotNull ActivityPath activityPath) static int
getCompleteBucketsNumber
(@NotNull List<WorkBucketType> buckets) Returns the number of buckets that are marked as COMPLETE.static @Nullable WorkBucketType
getLastBucket
(List<WorkBucketType> buckets) static Integer
getNumberOfBuckets
(@NotNull ActivityStateType state) getSequentialNumbers
(@NotNull Collection<WorkBucketType> buckets) static @Nullable String
getWorkerOid
(@NotNull WorkBucketType bucket) static @Nullable AbstractWorkSegmentationType
static boolean
hasLimitations
(WorkBucketType bucket) static boolean
hasNonTrivialBuckets
(@NotNull ActivityStateType state) A little guesswork for now.static boolean
isCoordinator
(@Nullable ActivityStateType state) static boolean
isDelegatedTo
(@NotNull WorkBucketType bucket, @NotNull String workerOid) static boolean
isInScavengingPhase
(TaskActivityStateType taskState, ActivityPath activityPath) static boolean
isScavenger
(TaskActivityStateType taskState, ActivityPath activityPath) static boolean
isStandalone
(@Nullable ActivityStateType state) static boolean
isWorkComplete
(ActivityStateType state) static void
sortBucketsBySequentialNumber
(List<WorkBucketType> buckets)
-
Constructor Details
-
BucketingUtil
public BucketingUtil()
-
-
Method Details
-
findBucketByNumber
-
findBucketByNumberRequired
@NotNull public static @NotNull WorkBucketType findBucketByNumberRequired(List<WorkBucketType> buckets, int sequentialNumber) -
sortBucketsBySequentialNumber
-
getWorkSegmentationConfiguration
@Nullable public static @Nullable AbstractWorkSegmentationType getWorkSegmentationConfiguration(BucketsDefinitionType buckets) -
getCompleteBucketsNumber
Returns the number of buckets that are marked as COMPLETE. They may be implicitly present. -
getLastBucket
-
hasLimitations
-
isCoordinator
-
isStandalone
-
getBuckets
@NotNull public static @NotNull List<WorkBucketType> getBuckets(@NotNull @NotNull TaskActivityStateType taskState, @NotNull @NotNull ActivityPath activityPath) -
getBuckets
@NotNull public static @NotNull List<WorkBucketType> getBuckets(@NotNull @NotNull ActivityStateType state) -
getNumberOfBuckets
-
hasNonTrivialBuckets
A little guesswork for now. -
isScavenger
-
isInScavengingPhase
public static boolean isInScavengingPhase(TaskActivityStateType taskState, ActivityPath activityPath) -
isWorkComplete
-
getWorkerOid
-
isDelegatedTo
public static boolean isDelegatedTo(@NotNull @NotNull WorkBucketType bucket, @NotNull @NotNull String workerOid) -
getSequentialNumbers
@NotNull public static @NotNull Set<Integer> getSequentialNumbers(@NotNull @NotNull Collection<WorkBucketType> buckets)
-