Class BatchNodeCounts

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

public final class BatchNodeCounts extends Object implements com.azure.json.JsonSerializable<BatchNodeCounts>
The number of Compute Nodes in each Compute Node state.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of BatchNodeCounts from the JsonReader.
    int
    Get the creating property: The number of Compute Nodes in the creating state.
    int
    Get the deallocated property: The number of Compute Nodes in the deallocated state.
    int
    Get the deallocating property: The number of Compute Nodes in the deallocating state.
    int
    Get the idle property: The number of Compute Nodes in the idle state.
    int
    Get the leavingPool property: The number of Compute Nodes in the leavingPool state.
    int
    Get the offline property: The number of Compute Nodes in the offline state.
    int
    Get the preempted property: The number of Compute Nodes in the preempted state.
    int
    Get the rebooting property: The count of Compute Nodes in the rebooting state.
    int
    Get the reimaging property: The number of Compute Nodes in the reimaging state.
    int
    Get the running property: The number of Compute Nodes in the running state.
    int
    Get the starting property: The number of Compute Nodes in the starting state.
    int
    Get the startTaskFailed property: The number of Compute Nodes in the startTaskFailed state.
    int
    Get the total property: The total number of Compute Nodes.
    int
    Get the unknown property: The number of Compute Nodes in the unknown state.
    int
    Get the unusable property: The number of Compute Nodes in the unusable state.
    int
    Get the upgradingOs property: The number of Compute Nodes in the upgradingOS state.
    int
    Get the waitingForStartTask property: The number of Compute Nodes in the waitingForStartTask state.
    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

    • getCreating

      public int getCreating()
      Get the creating property: The number of Compute Nodes in the creating state.
      Returns:
      the creating value.
    • getIdle

      public int getIdle()
      Get the idle property: The number of Compute Nodes in the idle state.
      Returns:
      the idle value.
    • getOffline

      public int getOffline()
      Get the offline property: The number of Compute Nodes in the offline state.
      Returns:
      the offline value.
    • getPreempted

      public int getPreempted()
      Get the preempted property: The number of Compute Nodes in the preempted state.
      Returns:
      the preempted value.
    • getRebooting

      public int getRebooting()
      Get the rebooting property: The count of Compute Nodes in the rebooting state.
      Returns:
      the rebooting value.
    • getReimaging

      public int getReimaging()
      Get the reimaging property: The number of Compute Nodes in the reimaging state.
      Returns:
      the reimaging value.
    • getRunning

      public int getRunning()
      Get the running property: The number of Compute Nodes in the running state.
      Returns:
      the running value.
    • getStarting

      public int getStarting()
      Get the starting property: The number of Compute Nodes in the starting state.
      Returns:
      the starting value.
    • getStartTaskFailed

      public int getStartTaskFailed()
      Get the startTaskFailed property: The number of Compute Nodes in the startTaskFailed state.
      Returns:
      the startTaskFailed value.
    • getLeavingPool

      public int getLeavingPool()
      Get the leavingPool property: The number of Compute Nodes in the leavingPool state.
      Returns:
      the leavingPool value.
    • getUnknown

      public int getUnknown()
      Get the unknown property: The number of Compute Nodes in the unknown state.
      Returns:
      the unknown value.
    • getUnusable

      public int getUnusable()
      Get the unusable property: The number of Compute Nodes in the unusable state.
      Returns:
      the unusable value.
    • getWaitingForStartTask

      public int getWaitingForStartTask()
      Get the waitingForStartTask property: The number of Compute Nodes in the waitingForStartTask state.
      Returns:
      the waitingForStartTask value.
    • getDeallocated

      public int getDeallocated()
      Get the deallocated property: The number of Compute Nodes in the deallocated state.
      Returns:
      the deallocated value.
    • getDeallocating

      public int getDeallocating()
      Get the deallocating property: The number of Compute Nodes in the deallocating state.
      Returns:
      the deallocating value.
    • getTotal

      public int getTotal()
      Get the total property: The total number of Compute Nodes.
      Returns:
      the total value.
    • getUpgradingOs

      public int getUpgradingOs()
      Get the upgradingOs property: The number of Compute Nodes in the upgradingOS state.
      Returns:
      the upgradingOs value.
    • toJson

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

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