Class FixedScaleSettings
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the nodeDeallocationOption property: Determines what to do with a node and its running task(s) after it has been selected for deallocation.Get the resizeTimeout property: The timeout for allocation of compute nodes to the pool.Get the targetDedicatedNodes property: The desired number of dedicated compute nodes in the pool.Get the targetLowPriorityNodes property: The desired number of Spot/low-priority compute nodes in the pool.void
validate()
Validates the instance.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.withResizeTimeout
(Duration resizeTimeout) Set the resizeTimeout property: The timeout for allocation of compute nodes to the pool.withTargetDedicatedNodes
(Integer targetDedicatedNodes) Set the targetDedicatedNodes property: The desired number of dedicated compute nodes in the pool.withTargetLowPriorityNodes
(Integer targetLowPriorityNodes) Set the targetLowPriorityNodes property: The desired number of Spot/low-priority compute nodes in the pool.
-
Constructor Details
-
FixedScaleSettings
public FixedScaleSettings()Creates an instance of FixedScaleSettings class.
-
-
Method Details
-
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:
- the resizeTimeout value.
-
withResizeTimeout
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:
resizeTimeout
- the resizeTimeout value to set.- Returns:
- the FixedScaleSettings object itself.
-
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:
- the targetDedicatedNodes value.
-
withTargetDedicatedNodes
Set the targetDedicatedNodes property: The desired number of dedicated compute nodes in the pool.At least one of targetDedicatedNodes, targetLowPriorityNodes must be set.
- Parameters:
targetDedicatedNodes
- the targetDedicatedNodes value to set.- Returns:
- the FixedScaleSettings object itself.
-
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:
- the targetLowPriorityNodes value.
-
withTargetLowPriorityNodes
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:
targetLowPriorityNodes
- the targetLowPriorityNodes value to set.- Returns:
- the FixedScaleSettings object itself.
-
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:
- the nodeDeallocationOption value.
-
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:
nodeDeallocationOption
- the nodeDeallocationOption value to set.- Returns:
- the FixedScaleSettings object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-