Search in sources :

Example 1 with ProvisionerState

use of com.linkedin.kafka.cruisecontrol.detector.ProvisionerState 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);
}
Also used : RightsizeResult(com.linkedin.kafka.cruisecontrol.servlet.response.RightsizeResult) ProvisionRecommendation(com.linkedin.kafka.cruisecontrol.analyzer.ProvisionRecommendation) KafkaCruiseControlConfig(com.linkedin.kafka.cruisecontrol.config.KafkaCruiseControlConfig) ProvisionerState(com.linkedin.kafka.cruisecontrol.detector.ProvisionerState) RightsizeOptions(com.linkedin.kafka.cruisecontrol.detector.RightsizeOptions)

Aggregations

ProvisionRecommendation (com.linkedin.kafka.cruisecontrol.analyzer.ProvisionRecommendation)1 KafkaCruiseControlConfig (com.linkedin.kafka.cruisecontrol.config.KafkaCruiseControlConfig)1 ProvisionerState (com.linkedin.kafka.cruisecontrol.detector.ProvisionerState)1 RightsizeOptions (com.linkedin.kafka.cruisecontrol.detector.RightsizeOptions)1 RightsizeResult (com.linkedin.kafka.cruisecontrol.servlet.response.RightsizeResult)1