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 Details

    • REQUEUE

      public static final BatchNodeDeallocationOption 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

      public static final BatchNodeDeallocationOption 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

      public static final BatchNodeDeallocationOption TASK_COMPLETION
      Allow currently running Tasks to complete. Schedule no new Tasks while waiting. Remove Compute Nodes when all Tasks have completed.
    • RETAINED_DATA

      public static final BatchNodeDeallocationOption 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 public BatchNodeDeallocationOption()
      Deprecated.
      Use the fromString(String) factory method.
      Creates a new instance of BatchNodeDeallocationOption value.
  • Method Details

    • fromString

      public static BatchNodeDeallocationOption fromString(String name)
      Creates or finds a BatchNodeDeallocationOption from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding BatchNodeDeallocationOption.
    • values

      public static Collection<BatchNodeDeallocationOption> values()
      Gets known BatchNodeDeallocationOption values.
      Returns:
      known BatchNodeDeallocationOption values.