Package com.azure.compute.batch.models
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 TypeMethodDescriptionstatic BatchNodeCountsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BatchNodeCounts from the JsonReader.intGet the creating property: The number of Compute Nodes in the creating state.intGet the deallocated property: The number of Compute Nodes in the deallocated state.intGet the deallocating property: The number of Compute Nodes in the deallocating state.intgetIdle()Get the idle property: The number of Compute Nodes in the idle state.intGet the leavingPool property: The number of Compute Nodes in the leavingPool state.intGet the offline property: The number of Compute Nodes in the offline state.intGet the preempted property: The number of Compute Nodes in the preempted state.intGet the rebooting property: The count of Compute Nodes in the rebooting state.intGet the reimaging property: The number of Compute Nodes in the reimaging state.intGet the running property: The number of Compute Nodes in the running state.intGet the starting property: The number of Compute Nodes in the starting state.intGet the startTaskFailed property: The number of Compute Nodes in the startTaskFailed state.intgetTotal()Get the total property: The total number of Compute Nodes.intGet the unknown property: The number of Compute Nodes in the unknown state.intGet the unusable property: The number of Compute Nodes in the unusable state.intGet the upgradingOs property: The number of Compute Nodes in the upgradingOS state.intGet the waitingForStartTask property: The number of Compute Nodes in the waitingForStartTask state.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<BatchNodeCounts>- Throws:
IOException
-
fromJson
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.
-