Class BatchTaskStatistics

java.lang.Object
com.azure.compute.batch.models.BatchTaskStatistics
All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchTaskStatistics>

public final class BatchTaskStatistics extends Object implements com.azure.json.JsonSerializable<BatchTaskStatistics>
Resource usage statistics for a Task.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of BatchTaskStatistics from the JsonReader.
    Get the kernelCpuTime property: The total kernel mode CPU time (summed across all cores and all Compute Nodes) consumed by the Task.
    Get the lastUpdateTime property: The time at which the statistics were last updated.
    double
    Get the readIOGiB property: The total gibibytes read from disk by the Task.
    long
    Get the readIOps property: The total number of disk read operations made by the Task.
    Get the startTime property: The start time of the time range covered by the statistics.
    Get the url property: The URL of the statistics.
    Get the userCpuTime property: The total user mode CPU time (summed across all cores and all Compute Nodes) consumed by the Task.
    Get the waitTime property: The total wait time of the Task.
    Get the wallClockTime property: The total wall clock time of the Task.
    double
    Get the writeIOGiB property: The total gibibytes written to disk by the Task.
    long
    Get the writeIOps property: The total number of disk write operations made by the Task.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Method Details

    • getUrl

      public String getUrl()
      Get the url property: The URL of the statistics.
      Returns:
      the url value.
    • getStartTime

      public OffsetDateTime getStartTime()
      Get the startTime property: The start time of the time range covered by the statistics.
      Returns:
      the startTime 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.
    • 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.
    • 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.
    • 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.
    • getReadIOps

      public long getReadIOps()
      Get the readIOps property: The total number of disk read operations made by the Task.
      Returns:
      the readIOps value.
    • getWriteIOps

      public long getWriteIOps()
      Get the writeIOps property: The total number of disk write operations made by the Task.
      Returns:
      the writeIOps value.
    • getReadIOGiB

      public double getReadIOGiB()
      Get the readIOGiB property: The total gibibytes read from disk by the Task.
      Returns:
      the readIOGiB value.
    • getWriteIOGiB

      public double getWriteIOGiB()
      Get the writeIOGiB property: The total gibibytes written to disk by the Task.
      Returns:
      the writeIOGiB 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.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<BatchTaskStatistics>
      Throws:
      IOException
    • fromJson

      public static BatchTaskStatistics fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the BatchTaskStatistics.