TaskState Enum

  • java.lang.Object
    • java.lang.Enum
      • com.microsoft.azure.batch.protocol.models.TaskState

public enum TaskState
extends Enum<TaskState>

Defines values for TaskState.

Fields

ACTIVE

The Task is queued and able to run, but is not currently assigned to a Compute Node.

COMPLETED

The Task is no longer eligible to run, usually because the Task has finished successfully, or the Task has finished unsuccessfully and has exhausted its retry limit.

PREPARING

The Task has been assigned to a Compute Node, but is waiting for a required Job Preparation Task to complete on the Compute Node.

RUNNING

The Task is running on a Compute Node.

Methods inherited from java.lang.Enum

Methods inherited from java.lang.Object

Methods

fromString(String value)

public static TaskState fromString(String value)

Parses a serialized value to a TaskState instance.

Parameters

value
String
the serialized value to parse.

Returns

the parsed TaskState object, or null if unable to parse.

toString()

public String toString()

Returns

Overrides
java.lang.Enum.toString()

valueOf(String name)

public static TaskState valueOf(String name)

Parameters

name
String

Returns

values()

public static TaskState[] values()

Returns

Applies to