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).
Constructor Summary
Constructor | Description | |
---|---|---|
ResizeOperationStatus() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.util.List<Resize |
errors()
Get this property is set only if an error occurred during the last pool resize, and only when the pool allocation |
Compute |
nodeDeallocationOption()
Get the default value is requeue. |
org.joda.time.Period |
resizeTimeout()
Get the default value is 15 minutes. |
org.joda.time.DateTime |
startTime()
Get the start |
java.lang.Integer |
targetDedicatedNodes()
Get the target |
java.lang.Integer |
targetLowPriorityNodes()
Get the target |
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 allocation |
Resize |
withNodeDeallocationOption(ComputeNodeDeallocationOption nodeDeallocationOption)
Set the default value is requeue. |
Resize |
withResizeTimeout(Period resizeTimeout)
Set the default value is 15 minutes. |
Resize |
withStartTime(DateTime 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 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