BatchSubtask Class
- java.
lang. Object - com.
azure. compute. batch. models. BatchSubtask
- com.
Implements
public final class BatchSubtask
implements JsonSerializable<BatchSubtask>
Information about an Azure Batch subtask.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Batch |
fromJson(JsonReader jsonReader)
Reads an instance of Batch |
|
Batch |
getContainerInfo()
Get the container |
|
Offset |
getEndTime()
Get the end |
| Integer |
getExitCode()
Get the exit |
|
Batch |
getFailureInfo()
Get the failure |
| Integer |
getId()
Get the id property: The ID of the subtask. |
|
Batch |
getNodeInfo()
Get the node |
|
Batch |
getPreviousState()
Get the previous |
|
Offset |
getPreviousStateTransitionTime()
Get the previous |
|
Batch |
getResult()
Get the result property: The result of the Task execution. |
|
Offset |
getStartTime()
Get the start |
|
Batch |
getState()
Get the state property: The current state of the subtask. |
|
Offset |
getStateTransitionTime()
Get the state |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static BatchSubtask fromJson(JsonReader jsonReader)
Reads an instance of BatchSubtask from the JsonReader.
Parameters:
Returns:
Throws:
getContainerInfo
public BatchTaskContainerExecutionInfo getContainerInfo()
Get the containerInfo property: Information about the container under which the Task is executing. This property is set only if the Task runs in a container context.
Returns:
getEndTime
public OffsetDateTime getEndTime()
Get the endTime property: The time at which the subtask completed. This property is set only if the subtask is in the Completed state.
Returns:
getExitCode
public Integer getExitCode()
Get the exitCode property: The exit code of the program specified on the subtask command line. This property is set only if the subtask is in the completed state. In general, the exit code for a process reflects the specific convention implemented by the application developer for that process. If you use the exit code value to make decisions in your code, be sure that you know the exit code convention used by the application process. However, if the Batch service terminates the subtask (due to timeout, or user termination via the API) you may see an operating system-defined exit code.
Returns:
getFailureInfo
public BatchTaskFailureInfo getFailureInfo()
Get the failureInfo property: Information describing the Task failure, if any. This property is set only if the Task is in the completed state and encountered a failure.
Returns:
getId
public Integer getId()
Get the id property: The ID of the subtask.
Returns:
getNodeInfo
public BatchNodeInfo getNodeInfo()
Get the nodeInfo property: Information about the Compute Node on which the subtask ran.
Returns:
getPreviousState
public BatchSubtaskState getPreviousState()
Get the previousState property: The previous state of the subtask. This property is not set if the subtask is in its initial running state.
Returns:
getPreviousStateTransitionTime
public OffsetDateTime getPreviousStateTransitionTime()
Get the previousStateTransitionTime property: The time at which the subtask entered its previous state. This property is not set if the subtask is in its initial running state.
Returns:
getResult
public BatchTaskExecutionResult getResult()
Get the result property: The result of the Task execution. If the value is 'failed', then the details of the failure can be found in the failureInfo property.
Returns:
getStartTime
public OffsetDateTime getStartTime()
Get the startTime property: The time at which the subtask started running. If the subtask has been restarted or retried, this is the most recent time at which the subtask started running.
Returns:
getState
public BatchSubtaskState getState()
Get the state property: The current state of the subtask.
Returns:
getStateTransitionTime
public OffsetDateTime getStateTransitionTime()
Get the stateTransitionTime property: The time at which the subtask entered its current state.
Returns: