ResizeOperationStatus Class

  • java.lang.Object
    • com.microsoft.azure.management.batch.ResizeOperationStatus

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<ResizeError> errors()

Get this property is set only if an error occurred during the last pool resize, and only when the pool allocationState is Steady.

ComputeNodeDeallocationOption 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 startTime value.

java.lang.Integer targetDedicatedNodes()

Get the targetDedicatedNodes value.

java.lang.Integer targetLowPriorityNodes()

Get the targetLowPriorityNodes value.

ResizeOperationStatus 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.

ResizeOperationStatus withNodeDeallocationOption(ComputeNodeDeallocationOption nodeDeallocationOption)

Set the default value is requeue.

ResizeOperationStatus withResizeTimeout(Period resizeTimeout)

Set the default value is 15 minutes.

ResizeOperationStatus withStartTime(DateTime startTime)

Set the startTime value.

ResizeOperationStatus withTargetDedicatedNodes(Integer targetDedicatedNodes)

Set the targetDedicatedNodes value.

ResizeOperationStatus withTargetLowPriorityNodes(Integer targetLowPriorityNodes)

Set the targetLowPriorityNodes value.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

ResizeOperationStatus

public ResizeOperationStatus()

Method Details

errors

public List 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

nodeDeallocationOption

public ComputeNodeDeallocationOption nodeDeallocationOption()

Get the default value is requeue. Possible values include: 'Requeue', 'Terminate', 'TaskCompletion', 'RetainedData'.

Returns:

the nodeDeallocationOption value

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:

the resizeTimeout value

startTime

public DateTime startTime()

Get the startTime value.

Returns:

the startTime value

targetDedicatedNodes

public Integer targetDedicatedNodes()

Get the targetDedicatedNodes value.

Returns:

the targetDedicatedNodes value

targetLowPriorityNodes

public Integer targetLowPriorityNodes()

Get the targetLowPriorityNodes value.

Returns:

the targetLowPriorityNodes value

withErrors

public ResizeOperationStatus withErrors(List errors)

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.

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.

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:

resizeTimeout - the resizeTimeout value to set

Returns:

the ResizeOperationStatus object itself.

withStartTime

public ResizeOperationStatus withStartTime(DateTime startTime)

Set the startTime value.

Parameters:

startTime - the startTime value to set

Returns:

the ResizeOperationStatus object itself.

withTargetDedicatedNodes

public ResizeOperationStatus withTargetDedicatedNodes(Integer targetDedicatedNodes)

Set the targetDedicatedNodes value.

Parameters:

targetDedicatedNodes - the targetDedicatedNodes value to set

Returns:

the ResizeOperationStatus object itself.

withTargetLowPriorityNodes

public ResizeOperationStatus withTargetLowPriorityNodes(Integer targetLowPriorityNodes)

Set the targetLowPriorityNodes value.

Parameters:

targetLowPriorityNodes - the targetLowPriorityNodes value to set

Returns:

the ResizeOperationStatus object itself.

Applies to