Search in sources :

Example 1 with AutoscaleClusterState

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);
}
Also used : AutoscaleClusterState(com.sequenceiq.periscope.api.model.AutoscaleClusterState) AutoScaleClusterV1Endpoint(com.sequenceiq.periscope.api.endpoint.v1.AutoScaleClusterV1Endpoint)

Aggregations

AutoScaleClusterV1Endpoint (com.sequenceiq.periscope.api.endpoint.v1.AutoScaleClusterV1Endpoint)1 AutoscaleClusterState (com.sequenceiq.periscope.api.model.AutoscaleClusterState)1