Share via


BatchTaskInfo Class

  • java.lang.Object
    • com.azure.compute.batch.models.BatchTaskInfo

Implements

public final class BatchTaskInfo
implements JsonSerializable<BatchTaskInfo>

Information about a Task running on a Compute Node.

Method Summary

Modifier and Type Method and Description
static BatchTaskInfo fromJson(JsonReader jsonReader)

Reads an instance of BatchTaskInfo from the JsonReader.

BatchTaskExecutionInfo getExecutionInfo()

Get the executionInfo property: Information about the execution of the Task.

String getJobId()

Get the jobId property: The ID of the Job to which the Task belongs.

Integer getSubtaskId()

Get the subtaskId property: The ID of the subtask if the Task is a multi-instance Task.

String getTaskId()

Get the taskId property: The ID of the Task.

BatchTaskState getTaskState()

Get the taskState property: The current state of the Task.

String getTaskUrl()

Get the taskUrl property: The URL of the Task.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static BatchTaskInfo fromJson(JsonReader jsonReader)

Reads an instance of BatchTaskInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BatchTaskInfo if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getExecutionInfo

public BatchTaskExecutionInfo getExecutionInfo()

Get the executionInfo property: Information about the execution of the Task.

Returns:

the executionInfo value.

getJobId

public String getJobId()

Get the jobId property: The ID of the Job to which the Task belongs.

Returns:

the jobId value.

getSubtaskId

public Integer getSubtaskId()

Get the subtaskId property: The ID of the subtask if the Task is a multi-instance Task.

Returns:

the subtaskId value.

getTaskId

public String getTaskId()

Get the taskId property: The ID of the Task.

Returns:

the taskId value.

getTaskState

public BatchTaskState getTaskState()

Get the taskState property: The current state of the Task.

Returns:

the taskState value.

getTaskUrl

public String getTaskUrl()

Get the taskUrl property: The URL of the Task.

Returns:

the taskUrl value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to