Class BatchNodeAgentInfo

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

public final class BatchNodeAgentInfo extends Object implements com.azure.json.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
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of BatchNodeAgentInfo from the JsonReader.
    Get the lastUpdateTime property: The time when the Compute Node agent was updated on the Compute Node.
    Get the version property: The version of the Batch Compute Node agent running 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

    • 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.
    • 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.
    • toJson

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

      public static BatchNodeAgentInfo fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the BatchNodeAgentInfo.