use of com.sequenceiq.periscope.api.model.AutoscaleClusterState in project cloudbreak by hortonworks.
the class AutoscalingUtil method switchAutoscaling.
static void switchAutoscaling(AutoscaleClient autoscaleClient, Long clusterId, boolean enableAutoscaling) {
AutoScaleClusterV1Endpoint autoScaleClusterV1Endpoint = autoscaleClient.clusterEndpoint();
AutoscaleClusterState json = new AutoscaleClusterState();
json.setEnableAutoscaling(enableAutoscaling);
autoScaleClusterV1Endpoint.setAutoscaleState(clusterId, json);
}
Aggregations