ScaleSettings Class

  • java.lang.Object
    • com.microsoft.azure.management.batchai.ScaleSettings

public class ScaleSettings

At least one of manual or autoScale settings must be specified. Only one of manual or autoScale settings can be specified. If autoScale settings are specified, the system automatically scales the cluster up and down (within the supplied limits) based on the pending jobs on the cluster.

Method Summary

Modifier and Type Method and Description
AutoScaleSettings autoScale()

Get auto-scale settings for the cluster.

ManualScaleSettings manual()

Get manual scale settings for the cluster.

ScaleSettings withAutoScale(AutoScaleSettings autoScale)

Set auto-scale settings for the cluster.

ScaleSettings withManual(ManualScaleSettings manual)

Set manual scale settings for the cluster.

Method Details

autoScale

public AutoScaleSettings autoScale()

Get auto-scale settings for the cluster.

Returns:

the autoScale value

manual

public ManualScaleSettings manual()

Get manual scale settings for the cluster.

Returns:

the manual value

withAutoScale

public ScaleSettings withAutoScale(AutoScaleSettings autoScale)

Set auto-scale settings for the cluster.

Parameters:

autoScale - the autoScale value to set

Returns:

the ScaleSettings object itself.

withManual

public ScaleSettings withManual(ManualScaleSettings manual)

Set manual scale settings for the cluster.

Parameters:

manual - the manual value to set

Returns:

the ScaleSettings object itself.

Applies to