public class OperationStatsImpl extends Object implements OperationStats
| Constructor and Description |
|---|
OperationStatsImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(OperationRun run)
Adds information for the given run to the statistics
|
void |
clear()
Clears all run statistics
|
long |
getActualAverageRuntime()
Gets average runtime for the operation over all runs (arithmetic mean)
based on the actual runtime
|
double |
getActualOperationsPerHour()
Calculates how many times this operation could be executed multi-threaded
per hour based upon the
OperationStats.getActualAverageRuntime() |
double |
getActualOperationsPerSecond()
Calculates how many times this operation could be executed multi-threaded
per second based upon the
OperationStats.getActualAverageRuntime() |
long |
getActualRuntime()
Gets the actual runtime for the operation over all runs (takes into
account operations that run in parallel)
|
long |
getAverageResponseTime()
Gets the average response time over all runs (arithmetic mean) based on
the total response time
|
long |
getAverageResults()
Gets the average number of results
|
long |
getAverageRuntime()
Gets the average runtime for the operation over all runs (arithmetic
mean) based on the total runtime
|
Map<Integer,List<OperationRun>> |
getCategorizedErrors()
Gets the information for all errors grouped by category
|
double |
getGeometricAverageRuntime()
Gets the average runtime for the operation over all runs (geometric mean)
based on the total runtime
|
long |
getMaximumRuntime()
Gets the maximum runtime for this operation over all runs
|
long |
getMinimumRuntime()
Gets the minimum runtime for this operation over all runs
|
double |
getOperationsPerHour()
Calculates how many times this operation could be executed
single-threaded per hour based upon the average runtime of the operation
|
double |
getOperationsPerSecond()
Calculates how many times this operation could be executed
single-threaded per second based upon the average runtime of the
operation
|
long |
getRunCount()
Gets the number of runs for the operation
|
Iterator<OperationRun> |
getRuns()
Gets an iterator over the operation runs
|
double |
getStandardDeviation()
Gets the standard deviation for operation runtime
|
ParallelTimer |
getTimer()
Gets the parallel timer used to track actual runtime
|
long |
getTotalErrors()
Gets the total number of times this operation resulted in an error
|
long |
getTotalResponseTime()
Gets the total response time for the operations over all runs
|
long |
getTotalResults()
Gets the total number of results for this operation
|
long |
getTotalRuntime()
Gets the total runtime for the query over all runs
|
double |
getVariance()
Gets the variance for the operation runtimes
|
void |
trim(int outliers)
Trims the best and worst N runs
|
public Iterator<OperationRun> getRuns()
OperationStatsgetRuns in interface OperationStatspublic long getTotalRuntime()
OperationStatsgetTotalRuntime in interface OperationStatspublic long getTotalErrors()
OperationStatsgetTotalErrors in interface OperationStatspublic Map<Integer,List<OperationRun>> getCategorizedErrors()
OperationStatsgetCategorizedErrors in interface OperationStatspublic long getActualRuntime()
OperationStatsgetActualRuntime in interface OperationStatspublic long getTotalResponseTime()
OperationStats
For non-streaming operations this will likely be equal to
OperationStats.getTotalRuntime()
getTotalResponseTime in interface OperationStatspublic long getAverageRuntime()
OperationStatsgetAverageRuntime in interface OperationStatspublic long getAverageResponseTime()
OperationStats
For non-streaming operations this will likely be equal to
OperationStats.getAverageRuntime()
getAverageResponseTime in interface OperationStatspublic double getGeometricAverageRuntime()
OperationStatsgetGeometricAverageRuntime in interface OperationStatspublic long getActualAverageRuntime()
OperationStatsgetActualAverageRuntime in interface OperationStatspublic long getMinimumRuntime()
OperationStatsgetMinimumRuntime in interface OperationStatspublic long getMaximumRuntime()
OperationStatsgetMaximumRuntime in interface OperationStatspublic double getVariance()
OperationStatsgetVariance in interface OperationStatspublic double getStandardDeviation()
OperationStatsgetStandardDeviation in interface OperationStatspublic long getTotalResults()
OperationStatsgetTotalResults in interface OperationStatspublic long getAverageResults()
OperationStatsgetAverageResults in interface OperationStatspublic double getOperationsPerSecond()
OperationStatsgetOperationsPerSecond in interface OperationStatspublic double getActualOperationsPerSecond()
OperationStatsOperationStats.getActualAverageRuntime()getActualOperationsPerSecond in interface OperationStatspublic double getOperationsPerHour()
OperationStatsgetOperationsPerHour in interface OperationStatspublic double getActualOperationsPerHour()
OperationStatsOperationStats.getActualAverageRuntime()getActualOperationsPerHour in interface OperationStatspublic void clear()
OperationStatsclear in interface OperationStatspublic void trim(int outliers)
OperationStatstrim in interface OperationStatsoutliers - Number of outliers to trimpublic long getRunCount()
OperationStatsgetRunCount in interface OperationStatspublic void add(OperationRun run)
OperationStatsadd in interface OperationStatsrun - Run informationpublic ParallelTimer getTimer()
OperationStatsgetTimer in interface OperationStatsCopyright © 2014. All Rights Reserved.