FixedScaleSettings Class
- java.
lang. Object - com.
azure. resourcemanager. batch. models. FixedScaleSettings
- com.
public final class FixedScaleSettings
Fixed scale settings for the pool.
Constructor Summary
Constructor | Description | |
---|---|---|
FixedScaleSettings() |
Method Summary
Modifier and Type | Method and Description |
---|---|
Compute |
nodeDeallocationOption()
Get the node |
Duration |
resizeTimeout()
Get the resize |
Integer |
targetDedicatedNodes()
Get the target |
Integer |
targetLowPriorityNodes()
Get the target |
void |
validate()
Validates the instance. |
Fixed |
withNodeDeallocationOption(ComputeNodeDeallocationOption nodeDeallocationOption)
Set the node |
Fixed |
withResizeTimeout(Duration resizeTimeout)
Set the resize |
Fixed |
withTargetDedicatedNodes(Integer targetDedicatedNodes)
Set the target |
Fixed |
withTargetLowPriorityNodes(Integer targetLowPriorityNodes)
Set the target |
Methods inherited from java.lang.Object
Constructor Details
FixedScaleSettings
public FixedScaleSettings()
Method Details
nodeDeallocationOption
public ComputeNodeDeallocationOption nodeDeallocationOption()
Get the nodeDeallocationOption property: Determines what to do with a node and its running task(s) after it has been selected for deallocation. If omitted, the default value is Requeue.
Returns:
resizeTimeout
public Duration resizeTimeout()
Get the resizeTimeout property: The timeout for allocation of compute nodes to the pool. 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 the targetDedicatedNodes property: The desired number of dedicated compute nodes in the pool. At least one of targetDedicatedNodes, targetLowPriorityNodes must be set.
Returns:
targetLowPriorityNodes
public Integer targetLowPriorityNodes()
Get the targetLowPriorityNodes property: The desired number of Spot/low-priority compute nodes in the pool. At least one of targetDedicatedNodes, targetLowPriorityNodes must be set.
Returns:
validate
public void validate()
Validates the instance.
withNodeDeallocationOption
public FixedScaleSettings withNodeDeallocationOption(ComputeNodeDeallocationOption nodeDeallocationOption)
Set the nodeDeallocationOption property: Determines what to do with a node and its running task(s) after it has been selected for deallocation. If omitted, the default value is Requeue.
Parameters:
Returns:
withResizeTimeout
public FixedScaleSettings withResizeTimeout(Duration resizeTimeout)
Set the resizeTimeout property: The timeout for allocation of compute nodes to the pool. 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 the targetDedicatedNodes property: The desired number of dedicated compute nodes in the pool. At least one of targetDedicatedNodes, targetLowPriorityNodes must be set.
Parameters:
Returns:
withTargetLowPriorityNodes
public FixedScaleSettings withTargetLowPriorityNodes(Integer targetLowPriorityNodes)
Set the targetLowPriorityNodes property: The desired number of Spot/low-priority compute nodes in the pool. At least one of targetDedicatedNodes, targetLowPriorityNodes must be set.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for