Class ManualScaleSettings

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

public class ManualScaleSettings extends Object
Manual scale settings for 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

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