use of org.apache.geode.internal.cache.partitioned.rebalance.BucketOperatorImpl in project geode by apache.
the class PartitionedRegionRebalanceOp method getBucketOperator.
private BucketOperatorWrapper getBucketOperator(Map<PartitionedRegion, InternalPRInfo> detailsMap) {
Set<PartitionRebalanceDetailsImpl> rebalanceDetails = new HashSet<PartitionRebalanceDetailsImpl>(detailsMap.size());
for (Map.Entry<PartitionedRegion, InternalPRInfo> entry : detailsMap.entrySet()) {
rebalanceDetails.add(new PartitionRebalanceDetailsImpl(entry.getKey()));
}
BucketOperator operator = simulate ? new SimulatedBucketOperator() : new BucketOperatorImpl(this);
BucketOperatorWrapper wrapper = new BucketOperatorWrapper(operator, rebalanceDetails, stats, leaderRegion);
return wrapper;
}
Aggregations