Share via


BatchTaskCountsResult Class

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

Implements

public final class BatchTaskCountsResult
implements JsonSerializable<BatchTaskCountsResult>

The Task and TaskSlot counts for a Job.

Method Summary

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

Reads an instance of BatchTaskCountsResult from the JsonReader.

BatchTaskCounts getTaskCounts()

Get the taskCounts property: The number of Tasks per state.

BatchTaskSlotCounts getTaskSlotCounts()

Get the taskSlotCounts property: The number of TaskSlots required by Tasks per state.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static BatchTaskCountsResult fromJson(JsonReader jsonReader)

Reads an instance of BatchTaskCountsResult from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BatchTaskCountsResult 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.

getTaskCounts

public BatchTaskCounts getTaskCounts()

Get the taskCounts property: The number of Tasks per state.

Returns:

the taskCounts value.

getTaskSlotCounts

public BatchTaskSlotCounts getTaskSlotCounts()

Get the taskSlotCounts property: The number of TaskSlots required by Tasks per state.

Returns:

the taskSlotCounts value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to