Share via


BatchNodeAgentInfo Class

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

Implements

public final class BatchNodeAgentInfo
implements JsonSerializable<BatchNodeAgentInfo>

The Batch Compute Node agent is a program that runs on each Compute Node in the Pool and provides Batch capability on the Compute Node.

Method Summary

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

Reads an instance of BatchNodeAgentInfo from the JsonReader.

OffsetDateTime getLastUpdateTime()

Get the lastUpdateTime property: The time when the Compute Node agent was updated on the Compute Node.

String getVersion()

Get the version property: The version of the Batch Compute Node agent running on the Compute Node.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static BatchNodeAgentInfo fromJson(JsonReader jsonReader)

Reads an instance of BatchNodeAgentInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BatchNodeAgentInfo if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getLastUpdateTime

public OffsetDateTime getLastUpdateTime()

Get the lastUpdateTime property: The time when the Compute Node agent was updated on the Compute Node. This is the most recent time that the Compute Node agent was updated to a new version.

Returns:

the lastUpdateTime value.

getVersion

public String getVersion()

Get the version property: The version of the Batch Compute Node agent running on the Compute Node. This version number can be checked against the Compute Node agent release notes located at https://github.com/Azure/Batch/blob/master/changelogs/nodeagent/CHANGELOG.md.

Returns:

the version value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to