ResizeOperationStatus Class
- java.
lang. Object - com.
microsoft. azure. management. batch. ResizeOperationStatus
- com.
public 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).
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Resize |
errors()
Get this property is set only if an error occurred during the last pool resize, and only when the pool allocationState is Steady. |
Compute |
nodeDeallocationOption()
Get the default value is requeue. Possible values include: 'Requeue', 'Terminate', 'TaskCompletion', 'RetainedData'. |
Period |
resizeTimeout()
Get 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). |
DateTime |
startTime()
Get the startTime value. |
Integer |
targetDedicatedNodes()
Get the targetDedicatedNodes value. |
Integer |
targetLowPriorityNodes()
Get the targetLowPriorityNodes value. |
Resize |
withErrors(List<ResizeError> errors)
Set this property is set only if an error occurred during the last pool resize, and only when the pool allocationState is Steady. |
Resize |
withNodeDeallocationOption(ComputeNodeDeallocationOption nodeDeallocationOption)
Set the default value is requeue. Possible values include: 'Requeue', 'Terminate', 'TaskCompletion', 'RetainedData'. |
Resize |
withResizeTimeout(Period resizeTimeout)
Set 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). |
Resize |
withStartTime(DateTime startTime)
Set the startTime value. |
Resize |
withTargetDedicatedNodes(Integer targetDedicatedNodes)
Set the targetDedicatedNodes value. |
Resize |
withTargetLowPriorityNodes(Integer targetLowPriorityNodes)
Set the targetLowPriorityNodes value. |
Method Details
errors
public List
Get 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 default value is requeue. Possible values include: 'Requeue', 'Terminate', 'TaskCompletion', 'RetainedData'.
Returns:
resizeTimeout
public Period resizeTimeout()
Get 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 DateTime startTime()
Get the startTime value.
Returns:
targetDedicatedNodes
public Integer targetDedicatedNodes()
Get the targetDedicatedNodes value.
Returns:
targetLowPriorityNodes
public Integer targetLowPriorityNodes()
Get the targetLowPriorityNodes value.
Returns:
withErrors
public ResizeOperationStatus withErrors(List
Set 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 default value is requeue. Possible values include: 'Requeue', 'Terminate', 'TaskCompletion', 'RetainedData'.
Parameters:
Returns:
withResizeTimeout
public ResizeOperationStatus withResizeTimeout(Period resizeTimeout)
Set 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(DateTime startTime)
Set the startTime value.
Parameters:
Returns:
withTargetDedicatedNodes
public ResizeOperationStatus withTargetDedicatedNodes(Integer targetDedicatedNodes)
Set the targetDedicatedNodes value.
Parameters:
Returns:
withTargetLowPriorityNodes
public ResizeOperationStatus withTargetLowPriorityNodes(Integer targetLowPriorityNodes)
Set the targetLowPriorityNodes value.
Parameters:
Returns:
Applies to
Azure SDK for Java