Class FixedScaleSettings
java.lang.Object
com.microsoft.azure.management.batch.FixedScaleSettings
Fixed scale settings for the pool.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet if omitted, the default value is Requeue.org.joda.time.Period
Get the default value is 15 minutes.Get at least one of targetDedicatedNodes, targetLowPriorityNodes must be set.Get at least one of targetDedicatedNodes, targetLowPriorityNodes must be set.withNodeDeallocationOption
(ComputeNodeDeallocationOption nodeDeallocationOption) Set if omitted, the default value is Requeue.withResizeTimeout
(org.joda.time.Period resizeTimeout) Set the default value is 15 minutes.withTargetDedicatedNodes
(Integer targetDedicatedNodes) Set at least one of targetDedicatedNodes, targetLowPriorityNodes must be set.withTargetLowPriorityNodes
(Integer targetLowPriorityNodes) Set at least one of targetDedicatedNodes, targetLowPriorityNodes must be set.
-
Constructor Details
-
FixedScaleSettings
public FixedScaleSettings()
-
-
Method Details
-
resizeTimeout
public org.joda.time.Period resizeTimeout()Get the default value is 15 minutes. Timeout values use ISO 8601 format. For example, use PT10M for 10 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service rejects the request with 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. Timeout values use ISO 8601 format. For example, use PT10M for 10 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service rejects the request with 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 FixedScaleSettings object itself.
-
targetDedicatedNodes
Get at least one of targetDedicatedNodes, targetLowPriorityNodes must be set.- Returns:
- the targetDedicatedNodes value
-
withTargetDedicatedNodes
Set at least one of targetDedicatedNodes, targetLowPriorityNodes must be set.- Parameters:
targetDedicatedNodes
- the targetDedicatedNodes value to set- Returns:
- the FixedScaleSettings object itself.
-
targetLowPriorityNodes
Get at least one of targetDedicatedNodes, targetLowPriorityNodes must be set.- Returns:
- the targetLowPriorityNodes value
-
withTargetLowPriorityNodes
Set at least one of targetDedicatedNodes, targetLowPriorityNodes must be set.- Parameters:
targetLowPriorityNodes
- the targetLowPriorityNodes value to set- Returns:
- the FixedScaleSettings object itself.
-
nodeDeallocationOption
Get if omitted, the default value is Requeue. Possible values include: 'Requeue', 'Terminate', 'TaskCompletion', 'RetainedData'.- Returns:
- the nodeDeallocationOption value
-
withNodeDeallocationOption
public FixedScaleSettings withNodeDeallocationOption(ComputeNodeDeallocationOption nodeDeallocationOption) Set if omitted, the default value is Requeue. Possible values include: 'Requeue', 'Terminate', 'TaskCompletion', 'RetainedData'.- Parameters:
nodeDeallocationOption
- the nodeDeallocationOption value to set- Returns:
- the FixedScaleSettings object itself.
-