Package com.azure.compute.batch.models
Class BatchNodeDeallocateOption
java.lang.Object
com.azure.core.util.ExpandableStringEnum<BatchNodeDeallocateOption>
com.azure.compute.batch.models.BatchNodeDeallocateOption
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class BatchNodeDeallocateOption
extends com.azure.core.util.ExpandableStringEnum<BatchNodeDeallocateOption>
BatchNodeDeallocateOption enums.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BatchNodeDeallocateOption
Terminate running Task processes and requeue the Tasks.static final BatchNodeDeallocateOption
Allow currently running Tasks to complete, then wait for all Task data retention periods to expire.static final BatchNodeDeallocateOption
Allow currently running Tasks to complete.static final BatchNodeDeallocateOption
Terminate running Tasks. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BatchNodeDeallocateOption
fromString
(String name) Creates or finds a BatchNodeDeallocateOption from its string representation.static Collection
<BatchNodeDeallocateOption> values()
Gets known BatchNodeDeallocateOption 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. Deallocate the Compute Node 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. Deallocate the Compute Node as soon as Tasks have been terminated. -
TASK_COMPLETION
Allow currently running Tasks to complete. Schedule no new Tasks while waiting. Deallocate the Compute Node 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. Deallocate the Compute Node when all Task retention periods have expired.
-
-
Constructor Details
-
BatchNodeDeallocateOption
Deprecated.Use thefromString(String)
factory method.Creates a new instance of BatchNodeDeallocateOption value.
-
-
Method Details
-
fromString
Creates or finds a BatchNodeDeallocateOption from its string representation.- Parameters:
name
- a name to look for.- Returns:
- the corresponding BatchNodeDeallocateOption.
-
values
Gets known BatchNodeDeallocateOption values.- Returns:
- known BatchNodeDeallocateOption values.
-
fromString(String)
factory method.