Package com.azure.compute.batch.models
Class BatchTaskInfo
java.lang.Object
com.azure.compute.batch.models.BatchTaskInfo
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchTaskInfo>
public final class BatchTaskInfo
extends Object
implements com.azure.json.JsonSerializable<BatchTaskInfo>
Information about a Task running on a Compute Node.
-
Method Summary
Modifier and TypeMethodDescriptionstatic BatchTaskInfofromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BatchTaskInfo from the JsonReader.Get the executionInfo property: Information about the execution of the Task.getJobId()Get the jobId property: The ID of the Job to which the Task belongs.Get the subtaskId property: The ID of the subtask if the Task is a multi-instance Task.Get the taskId property: The ID of the Task.Get the taskState property: The current state of the Task.Get the taskUrl property: The URL of the Task.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getTaskUrl
Get the taskUrl property: The URL of the Task.- Returns:
- the taskUrl value.
-
getJobId
Get the jobId property: The ID of the Job to which the Task belongs.- Returns:
- the jobId value.
-
getTaskId
Get the taskId property: The ID of the Task.- Returns:
- the taskId value.
-
getSubtaskId
Get the subtaskId property: The ID of the subtask if the Task is a multi-instance Task.- Returns:
- the subtaskId value.
-
getTaskState
Get the taskState property: The current state of the Task.- Returns:
- the taskState value.
-
getExecutionInfo
Get the executionInfo property: Information about the execution of the Task.- Returns:
- the executionInfo value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<BatchTaskInfo>- Throws:
IOException
-
fromJson
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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the BatchTaskInfo.
-