Package com.azure.compute.batch.models
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 TypeMethodDescriptionstatic BatchNodeInfo
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
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
Get the nodeUrl property: The URL of the Compute Node on which the Task ran.- Returns:
- the nodeUrl value.
-
getPoolId
Get the poolId property: The ID of the Pool on which the Task ran.- Returns:
- the poolId value.
-
getNodeId
Get the nodeId property: The ID of the Compute Node on which the Task ran.- Returns:
- the nodeId value.
-
getTaskRootDirectory
Get the taskRootDirectory property: The root directory of the Task on the Compute Node.- Returns:
- the taskRootDirectory value.
-
getTaskRootDirectoryUrl
Get the taskRootDirectoryUrl property: The URL to the root directory of the Task on the Compute Node.- Returns:
- the taskRootDirectoryUrl value.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<BatchNodeInfo>
- Throws:
IOException
-
fromJson
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.
-