use of com.linkedin.kafka.cruisecontrol.detector.RightsizeOptions in project cruise-control by linkedin.
the class RightsizeRequest method handle.
@Override
protected RightsizeResult handle() {
KafkaCruiseControlConfig config = _kafkaCruiseControl.config();
ProvisionRecommendation recommendation = createProvisionRecommendation();
Map<String, ProvisionRecommendation> provisionRecommendation;
provisionRecommendation = Collections.singletonMap(RECOMMENDER_UP, recommendation);
ProvisionerState provisionerState = _kafkaCruiseControl.provisioner().rightsize(provisionRecommendation, new RightsizeOptions());
return new RightsizeResult(recommendation, provisionerState, config);
}
Aggregations