Class BatchNodeInfo

java.lang.Object
com.azure.compute.batch.models.BatchNodeInfo
All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchNodeInfo>

public final class BatchNodeInfo extends Object implements com.azure.json.JsonSerializable<BatchNodeInfo>
Information about the Compute Node on which a Task ran.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of BatchNodeInfo from the JsonReader.
    Get the affinityId property: An identifier for the Node on which the Task ran, which can be passed when adding a Task to request that the Task be scheduled on this Compute Node.
    Get the nodeId property: The ID of the Compute Node on which the Task ran.
    Get the nodeUrl property: The URL of the Compute Node on which the Task ran.
    Get the poolId property: The ID of the Pool on which the Task ran.
    Get the taskRootDirectory property: The root directory of the Task on the Compute Node.
    Get the taskRootDirectoryUrl property: The URL to the root directory of the Task on the Compute Node.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Method Details

    • getAffinityId

      public String getAffinityId()
      Get the affinityId property: An identifier for the Node on which the Task ran, which can be passed when adding a Task to request that the Task be scheduled on this Compute Node.
      Returns:
      the affinityId value.
    • getNodeUrl

      public String getNodeUrl()
      Get the nodeUrl property: The URL of the Compute Node on which the Task ran.
      Returns:
      the nodeUrl value.
    • getPoolId

      public String getPoolId()
      Get the poolId property: The ID of the Pool on which the Task ran.
      Returns:
      the poolId value.
    • getNodeId

      public String getNodeId()
      Get the nodeId property: The ID of the Compute Node on which the Task ran.
      Returns:
      the nodeId value.
    • getTaskRootDirectory

      public String getTaskRootDirectory()
      Get the taskRootDirectory property: The root directory of the Task on the Compute Node.
      Returns:
      the taskRootDirectory value.
    • getTaskRootDirectoryUrl

      public String getTaskRootDirectoryUrl()
      Get the taskRootDirectoryUrl property: The URL to the root directory of the Task on the Compute Node.
      Returns:
      the taskRootDirectoryUrl value.
    • toJson

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

      public static BatchNodeInfo fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of BatchNodeInfo from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of BatchNodeInfo if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the BatchNodeInfo.