Class BucketFactory
java.lang.Object
com.evolveum.midpoint.repo.common.activity.run.buckets.segmentation.BucketFactory
Creates buckets when needed. See
createNewBuckets(List, int)
method.-
Method Summary
Modifier and TypeMethodDescriptionstatic BucketFactory
create
(@Nullable ActivityDistributionDefinition distributionDefinition, @Nullable ImplicitSegmentationResolver implicitSegmentationResolver, @NotNull CommonTaskBeans beans) @NotNull List<WorkBucketType>
createNewBuckets
(@NotNull List<WorkBucketType> currentBuckets, int bucketsNeeded) Creates new buckets.@NotNull BucketContentFactory
-
Method Details
-
create
public static BucketFactory create(@Nullable @Nullable ActivityDistributionDefinition distributionDefinition, @Nullable @Nullable ImplicitSegmentationResolver implicitSegmentationResolver, @NotNull @NotNull CommonTaskBeans beans) -
createNewBuckets
@NotNull public @NotNull List<WorkBucketType> createNewBuckets(@NotNull @NotNull List<WorkBucketType> currentBuckets, int bucketsNeeded) throws SchemaException Creates new buckets.- Parameters:
currentBuckets
- Current list of buckets. This is used to determine where to start creating new buckets (sequential numbers, boundaries).bucketsNeeded
- How many buckets does the client need? We can create more, if we want to. But not less; unless there is no more buckets available.- Returns:
- Buckets created. We don't care about the state and worker reference.
- Throws:
SchemaException
-
getContentFactory
-
estimateNumberOfBuckets
-