Share via


BatchNodeInfo Class

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

Implements

public final class BatchNodeInfo
implements JsonSerializable<BatchNodeInfo>

Information about the Compute Node on which a Task ran.

Method Summary

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

Reads an instance of BatchNodeInfo from the JsonReader.

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.

String getNodeId()

Get the nodeId property: The ID of the Compute Node on which the Task ran.

String getNodeUrl()

Get the nodeUrl property: The URL of the Compute Node on which the Task ran.

String getPoolId()

Get the poolId property: The ID of the Pool on which the Task ran.

String getTaskRootDirectory()

Get the taskRootDirectory property: The root directory of the Task on the Compute Node.

String getTaskRootDirectoryUrl()

Get the taskRootDirectoryUrl property: The URL to the root directory of the Task on the Compute Node.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static BatchNodeInfo fromJson(JsonReader jsonReader)

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.

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.

getNodeId

public String getNodeId()

Get the nodeId property: The ID of the Compute Node on which the Task ran.

Returns:

the nodeId 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.

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 JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to