BatchTaskCounts Class
- java.
lang. Object - com.
azure. compute. batch. models. BatchTaskCounts
- com.
Implements
public final class BatchTaskCounts
implements JsonSerializable<BatchTaskCounts>
The Task counts for a Job.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Batch |
fromJson(JsonReader jsonReader)
Reads an instance of Batch |
| 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. |
|
Json |
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:
Returns:
Throws:
getActive
public int getActive()
Get the active property: The number of Tasks in the active state.
Returns:
getCompleted
public int getCompleted()
Get the completed property: The number of Tasks in the completed state.
Returns:
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:
getRunning
public int getRunning()
Get the running property: The number of Tasks in the running or preparing state.
Returns:
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: