Share via


BatchTaskStatistics Class

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

Implements

public final class BatchTaskStatistics
implements JsonSerializable<BatchTaskStatistics>

Resource usage statistics for a Task.

Method Summary

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

Reads an instance of BatchTaskStatistics from the JsonReader.

Duration getKernelCpuTime()

Get the kernelCpuTime property: The total kernel mode CPU time (summed across all cores and all Compute Nodes) consumed by the Task.

OffsetDateTime getLastUpdateTime()

Get the lastUpdateTime property: The time at which the statistics were last updated.

double getReadIoGiB()

Get the readIoGiB property: The total gibibytes read from disk by the Task.

long getReadIops()

Get the readIops property: The total number of disk read operations made by the Task.

OffsetDateTime getStartTime()

Get the startTime property: The start time of the time range covered by the statistics.

String getUrl()

Get the url property: The URL of the statistics.

Duration getUserCpuTime()

Get the userCpuTime property: The total user mode CPU time (summed across all cores and all Compute Nodes) consumed by the Task.

Duration getWaitTime()

Get the waitTime property: The total wait time of the Task.

Duration getWallClockTime()

Get the wallClockTime property: The total wall clock time of the Task.

double getWriteIoGiB()

Get the writeIoGiB property: The total gibibytes written to disk by the Task.

long getWriteIops()

Get the writeIops property: The total number of disk write operations made by the Task.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static BatchTaskStatistics fromJson(JsonReader jsonReader)

Reads an instance of BatchTaskStatistics from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getKernelCpuTime

public Duration getKernelCpuTime()

Get the kernelCpuTime property: The total kernel mode CPU time (summed across all cores and all Compute Nodes) consumed by the Task.

Returns:

the kernelCpuTime value.

getLastUpdateTime

public OffsetDateTime getLastUpdateTime()

Get the lastUpdateTime property: The time at which the statistics were last updated. All statistics are limited to the range between startTime and lastUpdateTime.

Returns:

the lastUpdateTime value.

getReadIoGiB

public double getReadIoGiB()

Get the readIoGiB property: The total gibibytes read from disk by the Task.

Returns:

the readIoGiB value.

getReadIops

public long getReadIops()

Get the readIops property: The total number of disk read operations made by the Task.

Returns:

the readIops value.

getStartTime

public OffsetDateTime getStartTime()

Get the startTime property: The start time of the time range covered by the statistics.

Returns:

the startTime value.

getUrl

public String getUrl()

Get the url property: The URL of the statistics.

Returns:

the url value.

getUserCpuTime

public Duration getUserCpuTime()

Get the userCpuTime property: The total user mode CPU time (summed across all cores and all Compute Nodes) consumed by the Task.

Returns:

the userCpuTime value.

getWaitTime

public Duration getWaitTime()

Get the waitTime property: The total wait time of the Task. The wait time for a Task is defined as the elapsed time between the creation of the Task and the start of Task execution. (If the Task is retried due to failures, the wait time is the time to the most recent Task execution.).

Returns:

the waitTime value.

getWallClockTime

public Duration getWallClockTime()

Get the wallClockTime property: The total wall clock time of the Task. The wall clock time is the elapsed time from when the Task started running on a Compute Node to when it finished (or to the last time the statistics were updated, if the Task had not finished by then). If the Task was retried, this includes the wall clock time of all the Task retries.

Returns:

the wallClockTime value.

getWriteIoGiB

public double getWriteIoGiB()

Get the writeIoGiB property: The total gibibytes written to disk by the Task.

Returns:

the writeIoGiB value.

getWriteIops

public long getWriteIops()

Get the writeIops property: The total number of disk write operations made by the Task.

Returns:

the writeIops value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to