Package com.azure.compute.batch.models
Class BatchNodeDeallocationOption
java.lang.Object
com.azure.core.util.ExpandableStringEnum<BatchNodeDeallocationOption>
com.azure.compute.batch.models.BatchNodeDeallocationOption
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class BatchNodeDeallocationOption
extends com.azure.core.util.ExpandableStringEnum<BatchNodeDeallocationOption>
BatchNodeDeallocationOption enums.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BatchNodeDeallocationOptionTerminate running Task processes and requeue the Tasks.static final BatchNodeDeallocationOptionAllow currently running Tasks to complete, then wait for all Task data retention periods to expire.static final BatchNodeDeallocationOptionAllow currently running Tasks to complete.static final BatchNodeDeallocationOptionTerminate running Tasks. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BatchNodeDeallocationOptionfromString(String name) Creates or finds a BatchNodeDeallocationOption from its string representation.values()Gets known BatchNodeDeallocationOption values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
REQUEUE
Terminate running Task processes and requeue the Tasks. The Tasks will run again when a Compute Node is available. Remove Compute Nodes as soon as Tasks have been terminated. -
TERMINATE
Terminate running Tasks. The Tasks will be completed with failureInfo indicating that they were terminated, and will not run again. Remove Compute Nodes as soon as Tasks have been terminated. -
TASK_COMPLETION
Allow currently running Tasks to complete. Schedule no new Tasks while waiting. Remove Compute Nodes when all Tasks have completed. -
RETAINED_DATA
Allow currently running Tasks to complete, then wait for all Task data retention periods to expire. Schedule no new Tasks while waiting. Remove Compute Nodes when all Task retention periods have expired.
-
-
Constructor Details
-
BatchNodeDeallocationOption
Deprecated.Use thefromString(String)factory method.Creates a new instance of BatchNodeDeallocationOption value.
-
-
Method Details
-
fromString
Creates or finds a BatchNodeDeallocationOption from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding BatchNodeDeallocationOption.
-
values
Gets known BatchNodeDeallocationOption values.- Returns:
- known BatchNodeDeallocationOption values.
-
fromString(String)factory method.