ResizeOperationStatus Class
- java.
lang. Object - com.
azure. resourcemanager. batch. models. ResizeOperationStatus
- com.
public final class ResizeOperationStatus
Details about the current or last completed resize operation. Describes either the current operation (if the pool AllocationState is Resizing) or the previously completed operation (if the AllocationState is Steady).
Constructor Summary
Constructor | Description | |
---|---|---|
ResizeOperationStatus() |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Resize |
errors()
Get the errors property: Details of any errors encountered while performing the last resize on the pool. |
Compute |
nodeDeallocationOption()
Get the node |
Duration |
resizeTimeout()
Get the resize |
Offset |
startTime()
Get the start |
Integer |
targetDedicatedNodes()
Get the target |
Integer |
targetLowPriorityNodes()
Get the target |
void |
validate()
Validates the instance. |
Resize |
withErrors(List<ResizeError> errors)
Set the errors property: Details of any errors encountered while performing the last resize on the pool. |
Resize |
withNodeDeallocationOption(ComputeNodeDeallocationOption nodeDeallocationOption)
Set the node |
Resize |
withResizeTimeout(Duration resizeTimeout)
Set the resize |
Resize |
withStartTime(OffsetDateTime startTime)
Set the start |
Resize |
withTargetDedicatedNodes(Integer targetDedicatedNodes)
Set the target |
Resize |
withTargetLowPriorityNodes(Integer targetLowPriorityNodes)
Set the target |
Methods inherited from java.lang.Object
Constructor Details
ResizeOperationStatus
public ResizeOperationStatus()
Method Details
errors
public List
Get the errors property: Details of any errors encountered while performing the last resize on the pool. This property is set only if an error occurred during the last pool resize, and only when the pool allocationState is Steady.
Returns:
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. The default value is requeue.
Returns:
resizeTimeout
public Duration resizeTimeout()
Get the resizeTimeout property: The timeout for allocation of compute nodes to the pool or removal of compute nodes from the pool. The default value is 15 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service returns an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).
Returns:
startTime
public OffsetDateTime startTime()
Get the startTime property: The time when this resize operation was started.
Returns:
targetDedicatedNodes
public Integer targetDedicatedNodes()
Get the targetDedicatedNodes property: The desired number of dedicated compute nodes in the pool.
Returns:
targetLowPriorityNodes
public Integer targetLowPriorityNodes()
Get the targetLowPriorityNodes property: The desired number of Spot/low-priority compute nodes in the pool.
Returns:
validate
public void validate()
Validates the instance.
withErrors
public ResizeOperationStatus withErrors(List
Set the errors property: Details of any errors encountered while performing the last resize on the pool. This property is set only if an error occurred during the last pool resize, and only when the pool allocationState is Steady.
Parameters:
Returns:
withNodeDeallocationOption
public ResizeOperationStatus 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. The default value is requeue.
Parameters:
Returns:
withResizeTimeout
public ResizeOperationStatus withResizeTimeout(Duration resizeTimeout)
Set the resizeTimeout property: The timeout for allocation of compute nodes to the pool or removal of compute nodes from the pool. The default value is 15 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service returns an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).
Parameters:
Returns:
withStartTime
public ResizeOperationStatus withStartTime(OffsetDateTime startTime)
Set the startTime property: The time when this resize operation was started.
Parameters:
Returns:
withTargetDedicatedNodes
public ResizeOperationStatus withTargetDedicatedNodes(Integer targetDedicatedNodes)
Set the targetDedicatedNodes property: The desired number of dedicated compute nodes in the pool.
Parameters:
Returns:
withTargetLowPriorityNodes
public ResizeOperationStatus withTargetLowPriorityNodes(Integer targetLowPriorityNodes)
Set the targetLowPriorityNodes property: The desired number of Spot/low-priority compute nodes in the pool.
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