Search in sources :

Example 1 with SimulatedBucketOperator

use of org.apache.geode.internal.cache.partitioned.rebalance.SimulatedBucketOperator 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;
}
Also used : ParallelBucketOperator(org.apache.geode.internal.cache.partitioned.rebalance.ParallelBucketOperator) BucketOperator(org.apache.geode.internal.cache.partitioned.rebalance.BucketOperator) SimulatedBucketOperator(org.apache.geode.internal.cache.partitioned.rebalance.SimulatedBucketOperator) PartitionedRegion(org.apache.geode.internal.cache.PartitionedRegion) BucketOperatorImpl(org.apache.geode.internal.cache.partitioned.rebalance.BucketOperatorImpl) BucketOperatorWrapper(org.apache.geode.internal.cache.partitioned.rebalance.BucketOperatorWrapper) SimulatedBucketOperator(org.apache.geode.internal.cache.partitioned.rebalance.SimulatedBucketOperator) PartitionRebalanceDetailsImpl(org.apache.geode.internal.cache.control.PartitionRebalanceDetailsImpl) LinkedHashMap(java.util.LinkedHashMap) Map(java.util.Map) HashSet(java.util.HashSet)

Aggregations

HashSet (java.util.HashSet)1 LinkedHashMap (java.util.LinkedHashMap)1 Map (java.util.Map)1 PartitionedRegion (org.apache.geode.internal.cache.PartitionedRegion)1 PartitionRebalanceDetailsImpl (org.apache.geode.internal.cache.control.PartitionRebalanceDetailsImpl)1 BucketOperator (org.apache.geode.internal.cache.partitioned.rebalance.BucketOperator)1 BucketOperatorImpl (org.apache.geode.internal.cache.partitioned.rebalance.BucketOperatorImpl)1 BucketOperatorWrapper (org.apache.geode.internal.cache.partitioned.rebalance.BucketOperatorWrapper)1 ParallelBucketOperator (org.apache.geode.internal.cache.partitioned.rebalance.ParallelBucketOperator)1 SimulatedBucketOperator (org.apache.geode.internal.cache.partitioned.rebalance.SimulatedBucketOperator)1