Share via


BatchTaskSlotCounts Class

  • java.lang.Object
    • com.azure.compute.batch.models.BatchTaskSlotCounts

Implements

public final class BatchTaskSlotCounts
implements JsonSerializable<BatchTaskSlotCounts>

The TaskSlot counts for a Job.

Method Summary

Modifier and Type Method and Description
static BatchTaskSlotCounts fromJson(JsonReader jsonReader)

Reads an instance of BatchTaskSlotCounts from the JsonReader.

int getActive()

Get the active property: The number of TaskSlots for active Tasks.

int getCompleted()

Get the completed property: The number of TaskSlots for completed Tasks.

int getFailed()

Get the failed property: The number of TaskSlots for failed Tasks.

int getRunning()

Get the running property: The number of TaskSlots for running Tasks.

int getSucceeded()

Get the succeeded property: The number of TaskSlots for succeeded Tasks.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static BatchTaskSlotCounts fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

getActive

public int getActive()

Get the active property: The number of TaskSlots for active Tasks.

Returns:

the active value.

getCompleted

public int getCompleted()

Get the completed property: The number of TaskSlots for completed Tasks.

Returns:

the completed value.

getFailed

public int getFailed()

Get the failed property: The number of TaskSlots for failed Tasks.

Returns:

the failed value.

getRunning

public int getRunning()

Get the running property: The number of TaskSlots for running Tasks.

Returns:

the running value.

getSucceeded

public int getSucceeded()

Get the succeeded property: The number of TaskSlots for succeeded Tasks.

Returns:

the succeeded value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to