ScaleSettings Class
- java.
lang. Object - com.
microsoft. azure. management. batchai. ScaleSettings
- com.
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 |
---|---|
Auto |
autoScale()
Get auto-scale settings for the cluster. |
Manual |
manual()
Get manual scale settings for the cluster. |
Scale |
withAutoScale(AutoScaleSettings autoScale)
Set auto-scale settings for the cluster. |
Scale |
withManual(ManualScaleSettings manual)
Set manual scale settings for the cluster. |
Method Details
autoScale
public AutoScaleSettings autoScale()
Get auto-scale settings for the cluster.
Returns:
manual
public ManualScaleSettings manual()
Get manual scale settings for the cluster.
Returns:
withAutoScale
public ScaleSettings withAutoScale(AutoScaleSettings autoScale)
Set auto-scale settings for the cluster.
Parameters:
Returns:
withManual
public ScaleSettings withManual(ManualScaleSettings manual)
Set manual scale settings for the cluster.
Parameters:
Returns:
Applies to
Azure SDK for Java