TaskStatistics Class

  • java.lang.Object
    • com.microsoft.azure.batch.protocol.models.TaskStatistics

public class TaskStatistics

Resource usage statistics for a Task.

Constructor Summary

Constructor Description
TaskStatistics()

Method Summary

Modifier and Type Method and Description
org.joda.time.Period kernelCPUTime()

Get the kernelCPUTime value.

org.joda.time.DateTime lastUpdateTime()

Get the lastUpdateTime value.

double readIOGiB()

Get the readIOGiB value.

long readIOps()

Get the readIOps value.

org.joda.time.DateTime startTime()

Get the startTime value.

String url()

Get the url value.

org.joda.time.Period userCPUTime()

Get the userCPUTime value.

org.joda.time.Period waitTime()

Get the waitTime value.

org.joda.time.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).

TaskStatistics withKernelCPUTime(Period kernelCPUTime)

Set the kernelCPUTime value.

TaskStatistics withLastUpdateTime(DateTime lastUpdateTime)

Set the lastUpdateTime value.

TaskStatistics withReadIOGiB(double readIOGiB)

Set the readIOGiB value.

TaskStatistics withReadIOps(long readIOps)

Set the readIOps value.

TaskStatistics withStartTime(DateTime startTime)

Set the startTime value.

TaskStatistics withUrl(String url)

Set the url value.

TaskStatistics withUserCPUTime(Period userCPUTime)

Set the userCPUTime value.

TaskStatistics withWaitTime(Period waitTime)

Set the waitTime value.

TaskStatistics 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).

TaskStatistics withWriteIOGiB(double writeIOGiB)

Set the writeIOGiB value.

TaskStatistics withWriteIOps(long writeIOps)

Set the writeIOps value.

double writeIOGiB()

Get the writeIOGiB value.

long writeIOps()

Get the writeIOps value.

Methods inherited from java.lang.Object

Constructor Details

TaskStatistics

public TaskStatistics()

Method Details

kernelCPUTime

public Period kernelCPUTime()

Get the kernelCPUTime value.

Returns:

the kernelCPUTime value

lastUpdateTime

public DateTime lastUpdateTime()

Get the lastUpdateTime value.

Returns:

the lastUpdateTime value

readIOGiB

public double readIOGiB()

Get the readIOGiB value.

Returns:

the readIOGiB value

readIOps

public long readIOps()

Get the readIOps value.

Returns:

the readIOps value

startTime

public DateTime startTime()

Get the startTime value.

Returns:

the startTime value

url

public String url()

Get the url value.

Returns:

the url value

userCPUTime

public Period userCPUTime()

Get the userCPUTime value.

Returns:

the userCPUTime value

waitTime

public Period waitTime()

Get the waitTime value.

Returns:

the waitTime value

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 the Task was retried, this includes the wall clock time of all the Task retries.

Returns:

the wallClockTime value

withKernelCPUTime

public TaskStatistics withKernelCPUTime(Period kernelCPUTime)

Set the kernelCPUTime value.

Parameters:

kernelCPUTime - the kernelCPUTime value to set

Returns:

the TaskStatistics object itself.

withLastUpdateTime

public TaskStatistics withLastUpdateTime(DateTime lastUpdateTime)

Set the lastUpdateTime value.

Parameters:

lastUpdateTime - the lastUpdateTime value to set

Returns:

the TaskStatistics object itself.

withReadIOGiB

public TaskStatistics withReadIOGiB(double readIOGiB)

Set the readIOGiB value.

Parameters:

readIOGiB - the readIOGiB value to set

Returns:

the TaskStatistics object itself.

withReadIOps

public TaskStatistics withReadIOps(long readIOps)

Set the readIOps value.

Parameters:

readIOps - the readIOps value to set

Returns:

the TaskStatistics object itself.

withStartTime

public TaskStatistics withStartTime(DateTime startTime)

Set the startTime value.

Parameters:

startTime - the startTime value to set

Returns:

the TaskStatistics object itself.

withUrl

public TaskStatistics withUrl(String url)

Set the url value.

Parameters:

url - the url value to set

Returns:

the TaskStatistics object itself.

withUserCPUTime

public TaskStatistics withUserCPUTime(Period userCPUTime)

Set the userCPUTime value.

Parameters:

userCPUTime - the userCPUTime value to set

Returns:

the TaskStatistics object itself.

withWaitTime

public TaskStatistics withWaitTime(Period waitTime)

Set the waitTime value.

Parameters:

waitTime - the waitTime value to set

Returns:

the TaskStatistics object itself.

withWallClockTime

public TaskStatistics 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 the Task was retried, this includes the wall clock time of all the Task retries.

Parameters:

wallClockTime - the wallClockTime value to set

Returns:

the TaskStatistics object itself.

withWriteIOGiB

public TaskStatistics withWriteIOGiB(double writeIOGiB)

Set the writeIOGiB value.

Parameters:

writeIOGiB - the writeIOGiB value to set

Returns:

the TaskStatistics object itself.

withWriteIOps

public TaskStatistics withWriteIOps(long writeIOps)

Set the writeIOps value.

Parameters:

writeIOps - the writeIOps value to set

Returns:

the TaskStatistics object itself.

writeIOGiB

public double writeIOGiB()

Get the writeIOGiB value.

Returns:

the writeIOGiB value

writeIOps

public long writeIOps()

Get the writeIOps value.

Returns:

the writeIOps value

Applies to