Class ManualScaleSettings
java.lang.Object
com.microsoft.azure.management.batchai.ManualScaleSettings
Manual scale settings for the cluster.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet an action to be performed when the cluster size is decreasing.int
Get the desired number of compute nodes in the Cluster.withNodeDeallocationOption
(DeallocationOption nodeDeallocationOption) Set an action to be performed when the cluster size is decreasing.withTargetNodeCount
(int targetNodeCount) Set the desired number of compute nodes in the Cluster.
-
Constructor Details
-
ManualScaleSettings
public ManualScaleSettings()
-
-
Method Details
-
targetNodeCount
public int targetNodeCount()Get the desired number of compute nodes in the Cluster. Default is 0.- Returns:
- the targetNodeCount value
-
withTargetNodeCount
Set the desired number of compute nodes in the Cluster. Default is 0.- Parameters:
targetNodeCount
- the targetNodeCount value to set- Returns:
- the ManualScaleSettings object itself.
-
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:
- the nodeDeallocationOption value
-
withNodeDeallocationOption
Set an action to be performed when the cluster size is decreasing. The default value is requeue. Possible values include: 'requeue', 'terminate', 'waitforjobcompletion'.- Parameters:
nodeDeallocationOption
- the nodeDeallocationOption value to set- Returns:
- the ManualScaleSettings object itself.
-