ManualScaleSettings Class

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

public class ManualScaleSettings

Manual scale settings for the cluster.

Method Summary

Modifier and Type Method and Description
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'.

int targetNodeCount()

Get the desired number of compute nodes in the Cluster. Default is 0.

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'.

ManualScaleSettings 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:

the nodeDeallocationOption value

targetNodeCount

public int targetNodeCount()

Get the desired number of compute nodes in the Cluster. Default is 0.

Returns:

the targetNodeCount value

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:

nodeDeallocationOption - the nodeDeallocationOption value to set

Returns:

the ManualScaleSettings object itself.

withTargetNodeCount

public ManualScaleSettings withTargetNodeCount(int targetNodeCount)

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.

Applies to