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 Details

    • getTaskUrl

      public String getTaskUrl()
      Get the taskUrl property: The URL of the Task.
      Returns:
      the taskUrl value.
    • getJobId

      public String getJobId()
      Get the jobId property: The ID of the Job to which the Task belongs.
      Returns:
      the jobId value.
    • getTaskId

      public String getTaskId()
      Get the taskId property: The ID of the Task.
      Returns:
      the taskId 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.
    • getTaskState

      public BatchTaskState getTaskState()
      Get the taskState property: The current state of the Task.
      Returns:
      the taskState value.
    • getExecutionInfo

      public BatchTaskExecutionInfo getExecutionInfo()
      Get the executionInfo property: Information about the execution of the Task.
      Returns:
      the executionInfo value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<BatchTaskInfo>
      Throws:
      IOException
    • fromJson

      public static BatchTaskInfo fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.