Class TaskStatistics
Object
org.anchoranalysis.experiment.task.TaskStatistics
public class TaskStatistics extends Object
Maintains statistics on the execution of a task (considering jobs in aggregate).
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description TaskStatistics(long numberTotalScheduledJobs, org.anchoranalysis.math.arithmetic.RunningSum success, org.anchoranalysis.math.arithmetic.RunningSum failed) -
Method Summary
Modifier and Type Method Description booleanallSuccessful()Did all jobs execute and completely successfully?org.anchoranalysis.math.arithmetic.RunningSumexecutionTimeTotal()Execution-time of all jobs in milliseconds, ignoring any parallelism.doublemeanExecutionTimeFailed()Mean execution-time of failed jobs in milliseconds.doublemeanExecutionTimeSuccess()Mean execution-time of successfully-completed jobs in milliseconds.longnumberCompletedFailed()The number of jobs that completed with failure.longnumberCompletedSuccess()The number of jobs that completed successfully.longnumberCompletedTotal()The number of jobs that completed in total.longnumberNotCompleted()Number of jobs that have not been completed.longnumberTotalScheduledJobs()Total number of scheduled jobs.
-
Constructor Details
-
TaskStatistics
public TaskStatistics(long numberTotalScheduledJobs, org.anchoranalysis.math.arithmetic.RunningSum success, org.anchoranalysis.math.arithmetic.RunningSum failed)
-
-
Method Details
-
numberNotCompleted
public long numberNotCompleted()Number of jobs that have not been completed.- Returns:
- the number of jobs.
-
executionTimeTotal
public org.anchoranalysis.math.arithmetic.RunningSum executionTimeTotal()Execution-time of all jobs in milliseconds, ignoring any parallelism.- Returns:
- the total execution-time.
-
meanExecutionTimeSuccess
public double meanExecutionTimeSuccess()Mean execution-time of successfully-completed jobs in milliseconds.- Returns:
- the mean execution-time.
-
meanExecutionTimeFailed
public double meanExecutionTimeFailed()Mean execution-time of failed jobs in milliseconds.- Returns:
- the mean execution-time.
-
allSuccessful
public boolean allSuccessful()Did all jobs execute and completely successfully?- Returns:
- true if yes, false if no.
-
numberCompletedSuccess
public long numberCompletedSuccess()The number of jobs that completed successfully.- Returns:
- the number of jobs.
-
numberCompletedFailed
public long numberCompletedFailed()The number of jobs that completed with failure.- Returns:
- the number of jobs.
-
numberCompletedTotal
public long numberCompletedTotal()The number of jobs that completed in total.- Returns:
- the number of jobs.
-
numberTotalScheduledJobs
public long numberTotalScheduledJobs()Total number of scheduled jobs.
-