JobStatistics Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. JobStatistics
- com.
public class JobStatistics
Resource usage statistics for a job.
Method Summary
Modifier and Type | Method and Description |
---|---|
Period |
kernelCPUTime()
Get the kernelCPUTime value. |
DateTime |
lastUpdateTime()
Get the lastUpdateTime value. |
long |
numFailedTasks()
Get a task fails if it exhausts its maximum retry count without returning exit code 0. |
long |
numSucceededTasks()
Get a task completes successfully if it returns exit code 0. |
long |
numTaskRetries()
Get the numTaskRetries value. |
double |
readIOGiB()
Get the readIOGiB value. |
long |
readIOps()
Get the readIOps value. |
DateTime |
startTime()
Get the startTime value. |
String |
url()
Get the url value. |
Period |
userCPUTime()
Get the userCPUTime value. |
Period |
waitTime()
Get 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.) This value is only reported in the account lifetime statistics; it is not included in the job statistics. |
Period |
wallClockTime()
Get 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 a task was retried, this includes the wall clock time of all the task retries. |
Job |
withKernelCPUTime(Period kernelCPUTime)
Set the kernelCPUTime value. |
Job |
withLastUpdateTime(DateTime lastUpdateTime)
Set the lastUpdateTime value. |
Job |
withNumFailedTasks(long numFailedTasks)
Set a task fails if it exhausts its maximum retry count without returning exit code 0. |
Job |
withNumSucceededTasks(long numSucceededTasks)
Set a task completes successfully if it returns exit code 0. |
Job |
withNumTaskRetries(long numTaskRetries)
Set the numTaskRetries value. |
Job |
withReadIOGiB(double readIOGiB)
Set the readIOGiB value. |
Job |
withReadIOps(long readIOps)
Set the readIOps value. |
Job |
withStartTime(DateTime startTime)
Set the startTime value. |
Job |
withUrl(String url)
Set the url value. |
Job |
withUserCPUTime(Period userCPUTime)
Set the userCPUTime value. |
Job |
withWaitTime(Period waitTime)
Set 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.) This value is only reported in the account lifetime statistics; it is not included in the job statistics. |
Job |
withWallClockTime(Period wallClockTime)
Set 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 a task was retried, this includes the wall clock time of all the task retries. |
Job |
withWriteIOGiB(double writeIOGiB)
Set the writeIOGiB value. |
Job |
withWriteIOps(long writeIOps)
Set the writeIOps value. |
double |
writeIOGiB()
Get the writeIOGiB value. |
long |
writeIOps()
Get the writeIOps value. |
Method Details
kernelCPUTime
public Period kernelCPUTime()
Get the kernelCPUTime value.
Returns:
lastUpdateTime
public DateTime lastUpdateTime()
Get the lastUpdateTime value.
Returns:
numFailedTasks
public long numFailedTasks()
Get a task fails if it exhausts its maximum retry count without returning exit code 0.
Returns:
numSucceededTasks
public long numSucceededTasks()
Get a task completes successfully if it returns exit code 0.
Returns:
numTaskRetries
public long numTaskRetries()
Get the numTaskRetries value.
Returns:
readIOGiB
public double readIOGiB()
Get the readIOGiB value.
Returns:
readIOps
public long readIOps()
Get the readIOps value.
Returns:
startTime
public DateTime startTime()
Get the startTime value.
Returns:
url
public String url()
Get the url value.
Returns:
userCPUTime
public Period userCPUTime()
Get the userCPUTime value.
Returns:
waitTime
public Period waitTime()
Get 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.) This value is only reported in the account lifetime statistics; it is not included in the job statistics.
Returns:
wallClockTime
public Period wallClockTime()
Get 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 a task was retried, this includes the wall clock time of all the task retries.
Returns:
withKernelCPUTime
public JobStatistics withKernelCPUTime(Period kernelCPUTime)
Set the kernelCPUTime value.
Parameters:
Returns:
withLastUpdateTime
public JobStatistics withLastUpdateTime(DateTime lastUpdateTime)
Set the lastUpdateTime value.
Parameters:
Returns:
withNumFailedTasks
public JobStatistics withNumFailedTasks(long numFailedTasks)
Set a task fails if it exhausts its maximum retry count without returning exit code 0.
Parameters:
Returns:
withNumSucceededTasks
public JobStatistics withNumSucceededTasks(long numSucceededTasks)
Set a task completes successfully if it returns exit code 0.
Parameters:
Returns:
withNumTaskRetries
public JobStatistics withNumTaskRetries(long numTaskRetries)
Set the numTaskRetries value.
Parameters:
Returns:
withReadIOGiB
public JobStatistics withReadIOGiB(double readIOGiB)
Set the readIOGiB value.
Parameters:
Returns:
withReadIOps
public JobStatistics withReadIOps(long readIOps)
Set the readIOps value.
Parameters:
Returns:
withStartTime
public JobStatistics withStartTime(DateTime startTime)
Set the startTime value.
Parameters:
Returns:
withUrl
public JobStatistics withUrl(String url)
Set the url value.
Parameters:
Returns:
withUserCPUTime
public JobStatistics withUserCPUTime(Period userCPUTime)
Set the userCPUTime value.
Parameters:
Returns:
withWaitTime
public JobStatistics withWaitTime(Period waitTime)
Set 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.) This value is only reported in the account lifetime statistics; it is not included in the job statistics.
Parameters:
Returns:
withWallClockTime
public JobStatistics withWallClockTime(Period wallClockTime)
Set 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 a task was retried, this includes the wall clock time of all the task retries.
Parameters:
Returns:
withWriteIOGiB
public JobStatistics withWriteIOGiB(double writeIOGiB)
Set the writeIOGiB value.
Parameters:
Returns:
withWriteIOps
public JobStatistics withWriteIOps(long writeIOps)
Set the writeIOps value.
Parameters:
Returns:
writeIOGiB
public double writeIOGiB()
Get the writeIOGiB value.
Returns:
writeIOps
public long writeIOps()
Get the writeIOps value.
Returns:
Applies to
Azure SDK for Java