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 -
Method Summary
Modifier and TypeMethodDescriptionstatic NodeStateCountsfromJson(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.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the unusableNodeCount property: Number of compute nodes which are in unusable state.voidvalidate()Validates the instance.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
-
Constructor Details
-
NodeStateCounts
public NodeStateCounts()Creates an instance of NodeStateCounts class.
-
-
Method Details
-
idleNodeCount
Get the idleNodeCount property: Number of compute nodes in idle state.- Returns:
- the idleNodeCount value.
-
runningNodeCount
Get the runningNodeCount property: Number of compute nodes which are running jobs.- Returns:
- the runningNodeCount value.
-
preparingNodeCount
Get the preparingNodeCount property: Number of compute nodes which are being prepared.- Returns:
- the preparingNodeCount value.
-
unusableNodeCount
Get the unusableNodeCount property: Number of compute nodes which are in unusable state.- Returns:
- the unusableNodeCount value.
-
leavingNodeCount
Get the leavingNodeCount property: Number of compute nodes which are leaving the amlCompute.- Returns:
- the leavingNodeCount value.
-
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<NodeStateCounts>- Throws:
IOException
-
fromJson
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.
-