Share via


BatchTaskCounts Class

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

Implements

public final class BatchTaskCounts
implements JsonSerializable<BatchTaskCounts>

The Task counts for a Job.

Method Summary

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

Reads an instance of BatchTaskCounts from the JsonReader.

int getActive()

Get the active property: The number of Tasks in the active state.

int getCompleted()

Get the completed property: The number of Tasks in the completed state.

int getFailed()

Get the failed property: The number of Tasks which failed.

int getRunning()

Get the running property: The number of Tasks in the running or preparing state.

int getSucceeded()

Get the succeeded property: The number of Tasks which succeeded.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static BatchTaskCounts fromJson(JsonReader jsonReader)

Reads an instance of BatchTaskCounts from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BatchTaskCounts 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 Tasks in the active state.

Returns:

the active value.

getCompleted

public int getCompleted()

Get the completed property: The number of Tasks in the completed state.

Returns:

the completed value.

getFailed

public int getFailed()

Get the failed property: The number of Tasks which failed. A Task fails if its result (found in the executionInfo property) is 'failure'.

Returns:

the failed value.

getRunning

public int getRunning()

Get the running property: The number of Tasks in the running or preparing state.

Returns:

the running value.

getSucceeded

public int getSucceeded()

Get the succeeded property: The number of Tasks which succeeded. A Task succeeds if its result (found in the executionInfo property) is 'success'.

Returns:

the succeeded value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to