ManualScaleSettings Class
- java.
lang. Object - com.
microsoft. azure. management. batchai. ManualScaleSettings
- com.
public class ManualScaleSettings
Manual scale settings for the cluster.
Method Summary
Modifier and Type | Method and Description |
---|---|
Deallocation |
nodeDeallocationOption()
Get an action to be performed when the cluster size is decreasing. The default value is requeue. Possible values include: 'requeue', 'terminate', 'waitforjobcompletion'. |
int |
targetNodeCount()
Get the desired number of compute nodes in the Cluster. Default is 0. |
Manual |
withNodeDeallocationOption(DeallocationOption nodeDeallocationOption)
Set an action to be performed when the cluster size is decreasing. The default value is requeue. Possible values include: 'requeue', 'terminate', 'waitforjobcompletion'. |
Manual |
withTargetNodeCount(int targetNodeCount)
Set the desired number of compute nodes in the Cluster. Default is 0. |
Method Details
nodeDeallocationOption
public DeallocationOption nodeDeallocationOption()
Get an action to be performed when the cluster size is decreasing. The default value is requeue. Possible values include: 'requeue', 'terminate', 'waitforjobcompletion'.
Returns:
targetNodeCount
public int targetNodeCount()
Get the desired number of compute nodes in the Cluster. Default is 0.
Returns:
withNodeDeallocationOption
public ManualScaleSettings withNodeDeallocationOption(DeallocationOption nodeDeallocationOption)
Set an action to be performed when the cluster size is decreasing. The default value is requeue. Possible values include: 'requeue', 'terminate', 'waitforjobcompletion'.
Parameters:
Returns:
withTargetNodeCount
public ManualScaleSettings withTargetNodeCount(int targetNodeCount)
Set the desired number of compute nodes in the Cluster. Default is 0.
Parameters:
Returns:
Applies to
Azure SDK for Java