FixedScaleSettings Class
- java.
lang. Object - com.
microsoft. azure. management. batch. FixedScaleSettings
- com.
public class FixedScaleSettings
Fixed scale settings for the pool.
Method Summary
Modifier and Type | Method and Description |
---|---|
Compute |
nodeDeallocationOption()
Get if omitted, the default value is Requeue. Possible values include: 'Requeue', 'Terminate', 'TaskCompletion', 'RetainedData'. |
Period |
resizeTimeout()
Get the default value is 15 minutes. Timeout values use ISO 8601 format. For example, use PT10M for 10 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service rejects the request with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). |
Integer |
targetDedicatedNodes()
Get at least one of targetDedicatedNodes, targetLowPriorityNodes must be set. |
Integer |
targetLowPriorityNodes()
Get at least one of targetDedicatedNodes, targetLowPriorityNodes must be set. |
Fixed |
withNodeDeallocationOption(ComputeNodeDeallocationOption nodeDeallocationOption)
Set if omitted, the default value is Requeue. Possible values include: 'Requeue', 'Terminate', 'TaskCompletion', 'RetainedData'. |
Fixed |
withResizeTimeout(Period resizeTimeout)
Set the default value is 15 minutes. Timeout values use ISO 8601 format. For example, use PT10M for 10 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service rejects the request with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). |
Fixed |
withTargetDedicatedNodes(Integer targetDedicatedNodes)
Set at least one of targetDedicatedNodes, targetLowPriorityNodes must be set. |
Fixed |
withTargetLowPriorityNodes(Integer targetLowPriorityNodes)
Set at least one of targetDedicatedNodes, targetLowPriorityNodes must be set. |
Method Details
nodeDeallocationOption
public ComputeNodeDeallocationOption nodeDeallocationOption()
Get if omitted, the default value is Requeue. Possible values include: 'Requeue', 'Terminate', 'TaskCompletion', 'RetainedData'.
Returns:
resizeTimeout
public Period resizeTimeout()
Get the default value is 15 minutes. Timeout values use ISO 8601 format. For example, use PT10M for 10 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service rejects the request with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).
Returns:
targetDedicatedNodes
public Integer targetDedicatedNodes()
Get at least one of targetDedicatedNodes, targetLowPriorityNodes must be set.
Returns:
targetLowPriorityNodes
public Integer targetLowPriorityNodes()
Get at least one of targetDedicatedNodes, targetLowPriorityNodes must be set.
Returns:
withNodeDeallocationOption
public FixedScaleSettings withNodeDeallocationOption(ComputeNodeDeallocationOption nodeDeallocationOption)
Set if omitted, the default value is Requeue. Possible values include: 'Requeue', 'Terminate', 'TaskCompletion', 'RetainedData'.
Parameters:
Returns:
withResizeTimeout
public FixedScaleSettings withResizeTimeout(Period resizeTimeout)
Set the default value is 15 minutes. Timeout values use ISO 8601 format. For example, use PT10M for 10 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service rejects the request with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).
Parameters:
Returns:
withTargetDedicatedNodes
public FixedScaleSettings withTargetDedicatedNodes(Integer targetDedicatedNodes)
Set at least one of targetDedicatedNodes, targetLowPriorityNodes must be set.
Parameters:
Returns:
withTargetLowPriorityNodes
public FixedScaleSettings withTargetLowPriorityNodes(Integer targetLowPriorityNodes)
Set at least one of targetDedicatedNodes, targetLowPriorityNodes must be set.
Parameters:
Returns:
Applies to
Azure SDK for Java