mappingCalculator = new AutoRebalancer();
} else if (idealState.getRebalanceMode() == RebalanceMode.SEMI_AUTO) {
rebalancer = new SemiAutoRebalancer();
mappingCalculator = new SemiAutoRebalancer();
} else {
rebalancer = new CustomRebalancer();
mappingCalculator = new CustomRebalancer();
}
idealState =
rebalancer.computeNewIdealState(resourceName, idealState, currentStateOutput, cache);
}