Class ResizeOperationStatus
java.lang.Object
com.microsoft.azure.management.batch.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
-
Method Summary
Modifier and TypeMethodDescriptionerrors()
Get this property is set only if an error occurred during the last pool resize, and only when the pool allocationState is Steady.Get the default value is requeue.org.joda.time.Period
Get the default value is 15 minutes.org.joda.time.DateTime
Get the startTime value.Get the targetDedicatedNodes value.Get the targetLowPriorityNodes value.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.withNodeDeallocationOption
(ComputeNodeDeallocationOption nodeDeallocationOption) Set the default value is requeue.withResizeTimeout
(org.joda.time.Period resizeTimeout) Set the default value is 15 minutes.withStartTime
(org.joda.time.DateTime startTime) Set the startTime value.withTargetDedicatedNodes
(Integer targetDedicatedNodes) Set the targetDedicatedNodes value.withTargetLowPriorityNodes
(Integer targetLowPriorityNodes) Set the targetLowPriorityNodes value.
-
Constructor Details
-
ResizeOperationStatus
public ResizeOperationStatus()
-
-
Method Details
-
targetDedicatedNodes
Get the targetDedicatedNodes value.- Returns:
- the targetDedicatedNodes value
-
withTargetDedicatedNodes
Set the targetDedicatedNodes value.- Parameters:
targetDedicatedNodes
- the targetDedicatedNodes value to set- Returns:
- the ResizeOperationStatus object itself.
-
targetLowPriorityNodes
Get the targetLowPriorityNodes value.- Returns:
- the targetLowPriorityNodes value
-
withTargetLowPriorityNodes
Set the targetLowPriorityNodes value.- Parameters:
targetLowPriorityNodes
- the targetLowPriorityNodes value to set- Returns:
- the ResizeOperationStatus object itself.
-
resizeTimeout
public org.joda.time.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:
- the resizeTimeout value
-
withResizeTimeout
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:
resizeTimeout
- the resizeTimeout value to set- Returns:
- the ResizeOperationStatus object itself.
-
nodeDeallocationOption
Get the default value is requeue. Possible values include: 'Requeue', 'Terminate', 'TaskCompletion', 'RetainedData'.- Returns:
- the nodeDeallocationOption value
-
withNodeDeallocationOption
public ResizeOperationStatus withNodeDeallocationOption(ComputeNodeDeallocationOption nodeDeallocationOption) Set the default value is requeue. Possible values include: 'Requeue', 'Terminate', 'TaskCompletion', 'RetainedData'.- Parameters:
nodeDeallocationOption
- the nodeDeallocationOption value to set- Returns:
- the ResizeOperationStatus object itself.
-
startTime
public org.joda.time.DateTime startTime()Get the startTime value.- Returns:
- the startTime value
-
withStartTime
Set the startTime value.- Parameters:
startTime
- the startTime value to set- Returns:
- the ResizeOperationStatus object itself.
-
errors
Get this property is set only if an error occurred during the last pool resize, and only when the pool allocationState is Steady.- Returns:
- the errors value
-
withErrors
Set this property is set only if an error occurred during the last pool resize, and only when the pool allocationState is Steady.- Parameters:
errors
- the errors value to set- Returns:
- the ResizeOperationStatus object itself.
-