Package com.azure.compute.batch.models
Class BatchTaskSlotCounts
java.lang.Object
com.azure.compute.batch.models.BatchTaskSlotCounts
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchTaskSlotCounts>
public final class BatchTaskSlotCounts
extends Object
implements com.azure.json.JsonSerializable<BatchTaskSlotCounts>
The TaskSlot counts for a Job.
-
Method Summary
Modifier and TypeMethodDescriptionstatic BatchTaskSlotCountsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BatchTaskSlotCounts from the JsonReader.intGet the active property: The number of TaskSlots for active Tasks.intGet the completed property: The number of TaskSlots for completed Tasks.intGet the failed property: The number of TaskSlots for failed Tasks.intGet the running property: The number of TaskSlots for running Tasks.intGet the succeeded property: The number of TaskSlots for succeeded Tasks.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
-
getActive
public int getActive()Get the active property: The number of TaskSlots for active Tasks.- Returns:
- the active value.
-
getRunning
public int getRunning()Get the running property: The number of TaskSlots for running Tasks.- Returns:
- the running value.
-
getCompleted
public int getCompleted()Get the completed property: The number of TaskSlots for completed Tasks.- Returns:
- the completed value.
-
getSucceeded
public int getSucceeded()Get the succeeded property: The number of TaskSlots for succeeded Tasks.- Returns:
- the succeeded value.
-
getFailed
public int getFailed()Get the failed property: The number of TaskSlots for failed Tasks.- Returns:
- the failed value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<BatchTaskSlotCounts>- Throws:
IOException
-
fromJson
Reads an instance of BatchTaskSlotCounts from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BatchTaskSlotCounts 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 BatchTaskSlotCounts.
-