use of com.sequenceiq.cloudbreak.api.endpoint.v4.connector.responses.ScaleRecommendationV4Response in project cloudbreak by hortonworks.
the class ScaleRecommendationToScaleRecommendationV4ResponseConverter method convert.
public ScaleRecommendationV4Response convert(ScaleRecommendation source) {
AutoscaleRecommendationV4Response autoscaleRecommendation = new AutoscaleRecommendationV4Response(source.getAutoscaleRecommendation().getTimeBasedHostGroups(), source.getAutoscaleRecommendation().getLoadBasedHostGroups());
ResizeRecommendationV4Response resizeRecommendation = new ResizeRecommendationV4Response(source.getResizeRecommendation().getScaleUpHostGroups(), source.getResizeRecommendation().getScaleDownHostGroups());
ScaleRecommendationV4Response scaleRecommendation = new ScaleRecommendationV4Response(autoscaleRecommendation, resizeRecommendation);
return scaleRecommendation;
}
Aggregations