Enum SubtaskState
- java.lang.Object
-
- java.lang.Enum<SubtaskState>
-
- com.microsoft.azure.batch.protocol.models.SubtaskState
-
- All Implemented Interfaces:
Serializable
,Comparable<SubtaskState>
public enum SubtaskState extends Enum<SubtaskState>
Defines values for SubtaskState.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SubtaskState
fromString(String value)
Parses a serialized value to a SubtaskState instance.String
toString()
static SubtaskState
valueOf(String name)
Returns the enum constant of this type with the specified name.static SubtaskState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PREPARING
public static final SubtaskState 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. If the Job Preparation Task succeeds, the Task will move to running. If the Job Preparation Task fails, the Task will return to active and will be eligible to be assigned to a different Compute Node.
-
RUNNING
public static final SubtaskState RUNNING
The Task is running on a Compute Node. This includes task-level preparation such as downloading resource files or deploying Packages specified on the Task - it does not necessarily mean that the Task command line has started executing.
-
COMPLETED
public static final SubtaskState 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. A Task is also marked as completed if an error occurred launching the Task, or when the Task has been terminated.
-
-
Method Detail
-
values
public static SubtaskState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SubtaskState c : SubtaskState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SubtaskState valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromString
public static SubtaskState fromString(String value)
Parses a serialized value to a SubtaskState instance.- Parameters:
value
- the serialized value to parse.- Returns:
- the parsed SubtaskState object, or null if unable to parse.
-
toString
public String toString()
- Overrides:
toString
in classEnum<SubtaskState>
-
-