Class NodeStateCounts

java.lang.Object
com.azure.resourcemanager.machinelearning.models.NodeStateCounts
All Implemented Interfaces:
com.azure.json.JsonSerializable<NodeStateCounts>

public final class NodeStateCounts extends Object implements com.azure.json.JsonSerializable<NodeStateCounts>
Counts of various compute node states on the amlCompute.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of NodeStateCounts class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of NodeStateCounts from the JsonReader.
    Get the idleNodeCount property: Number of compute nodes in idle state.
    Get the leavingNodeCount property: Number of compute nodes which are leaving the amlCompute.
    Get the preemptedNodeCount property: Number of compute nodes which are in preempted state.
    Get the preparingNodeCount property: Number of compute nodes which are being prepared.
    Get the runningNodeCount property: Number of compute nodes which are running jobs.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the unusableNodeCount property: Number of compute nodes which are in unusable state.
    void
    Validates the instance.

    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
  • Constructor Details

    • NodeStateCounts

      public NodeStateCounts()
      Creates an instance of NodeStateCounts class.
  • Method Details

    • idleNodeCount

      public Integer idleNodeCount()
      Get the idleNodeCount property: Number of compute nodes in idle state.
      Returns:
      the idleNodeCount value.
    • runningNodeCount

      public Integer runningNodeCount()
      Get the runningNodeCount property: Number of compute nodes which are running jobs.
      Returns:
      the runningNodeCount value.
    • preparingNodeCount

      public Integer preparingNodeCount()
      Get the preparingNodeCount property: Number of compute nodes which are being prepared.
      Returns:
      the preparingNodeCount value.
    • unusableNodeCount

      public Integer unusableNodeCount()
      Get the unusableNodeCount property: Number of compute nodes which are in unusable state.
      Returns:
      the unusableNodeCount value.
    • leavingNodeCount

      public Integer leavingNodeCount()
      Get the leavingNodeCount property: Number of compute nodes which are leaving the amlCompute.
      Returns:
      the leavingNodeCount value.
    • preemptedNodeCount

      public Integer preemptedNodeCount()
      Get the preemptedNodeCount property: Number of compute nodes which are in preempted state.
      Returns:
      the preemptedNodeCount value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

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

      public static NodeStateCounts fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of NodeStateCounts from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of NodeStateCounts 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 NodeStateCounts.