Search in sources :

Example 1 with ScaleRecommendationV4Response

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;
}
Also used : AutoscaleRecommendationV4Response(com.sequenceiq.cloudbreak.api.endpoint.v4.connector.responses.AutoscaleRecommendationV4Response) ResizeRecommendationV4Response(com.sequenceiq.cloudbreak.api.endpoint.v4.connector.responses.ResizeRecommendationV4Response) ScaleRecommendationV4Response(com.sequenceiq.cloudbreak.api.endpoint.v4.connector.responses.ScaleRecommendationV4Response)

Aggregations

AutoscaleRecommendationV4Response (com.sequenceiq.cloudbreak.api.endpoint.v4.connector.responses.AutoscaleRecommendationV4Response)1 ResizeRecommendationV4Response (com.sequenceiq.cloudbreak.api.endpoint.v4.connector.responses.ResizeRecommendationV4Response)1 ScaleRecommendationV4Response (com.sequenceiq.cloudbreak.api.endpoint.v4.connector.responses.ScaleRecommendationV4Response)1