public class OperationMixStatsImpl extends Object implements OperationMixStats
| Constructor and Description |
|---|
OperationMixStatsImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(OperationMixRun run)
Adds information for the given run to the statistics
|
void |
clear()
Clears all run statistics
|
long |
getActualAverageRuntime()
Gets the average actual runtime for the mix over all runs (takes into
account parallelization of operations)
|
double |
getActualOperationMixesPerHour()
Calculates the number of operation mixes per hour that could be executed
based on the
OperationMixStats.getActualAverageRuntime() |
long |
getActualRuntime()
Gets the actual runtime for the mix over all runs (takes into account
queries that run in parallel)
|
long |
getAverageResponseTime()
Gets the average response time for the mix
|
long |
getAverageRuntime()
Gets the average runtime for the mix over all runs
|
Map<Integer,List<OperationRun>> |
getCategorizedErrors()
Gets the information for all errors grouped by category
|
double |
getGeometricAverageRuntime()
Gets the average runtime for the mix over all runs (geometric mean)
|
long |
getMaximumRuntime()
Gets the maximum runtime for a mix
|
long |
getMinimumRuntime()
Gets the minimum runtime for a mix
|
double |
getOperationMixesPerHour()
Calculates the number of operation mixes per hour that could be executed
based on the average runtime of the operation mix
|
long |
getRunCount()
Gets the number of runs for which information has been recorded
|
Iterator<OperationMixRun> |
getRuns()
Gets an iterator over the operation mix runs
|
double |
getStandardDeviation()
Gets the standard deviation in mix runtime
|
ParallelTimer |
getTimer()
Gets the parallel timer used to track actual runtime
|
long |
getTotalErrors()
Gets the total number of errors over all runs
|
long |
getTotalOperations()
Gets the total number of operations run across all mix runs
|
long |
getTotalResponseTime()
Gets the total response time over all runs
|
long |
getTotalRuntime()
Gets the total runtime over all runs
|
double |
getVariance()
Gets the variance in mix runtime
|
void |
trim(int outliers)
Trims the worst and best N results
|
public Iterator<OperationMixRun> getRuns()
OperationMixStatsgetRuns in interface OperationMixStatspublic long getRunCount()
OperationMixStatsgetRunCount in interface OperationMixStatspublic void clear()
OperationMixStatsclear in interface OperationMixStatspublic void trim(int outliers)
OperationMixStatstrim in interface OperationMixStatsoutliers - Number of outliers to trimpublic long getTotalOperations()
OperationMixStatsgetTotalOperations in interface OperationMixStatspublic long getTotalErrors()
OperationMixStatsgetTotalErrors in interface OperationMixStatspublic Map<Integer,List<OperationRun>> getCategorizedErrors()
OperationMixStatsgetCategorizedErrors in interface OperationMixStatspublic long getTotalRuntime()
OperationMixStatsgetTotalRuntime in interface OperationMixStatspublic long getActualRuntime()
OperationMixStatsgetActualRuntime in interface OperationMixStatspublic long getTotalResponseTime()
OperationMixStatsgetTotalResponseTime in interface OperationMixStatspublic long getAverageRuntime()
OperationMixStatsgetAverageRuntime in interface OperationMixStatspublic long getActualAverageRuntime()
OperationMixStatsgetActualAverageRuntime in interface OperationMixStatspublic long getAverageResponseTime()
OperationMixStatsgetAverageResponseTime in interface OperationMixStatspublic double getGeometricAverageRuntime()
OperationMixStatsgetGeometricAverageRuntime in interface OperationMixStatspublic long getMinimumRuntime()
OperationMixStatsgetMinimumRuntime in interface OperationMixStatspublic long getMaximumRuntime()
OperationMixStatsgetMaximumRuntime in interface OperationMixStatspublic double getVariance()
OperationMixStatsgetVariance in interface OperationMixStatspublic double getStandardDeviation()
OperationMixStatsgetStandardDeviation in interface OperationMixStatspublic double getOperationMixesPerHour()
OperationMixStatsgetOperationMixesPerHour in interface OperationMixStatspublic double getActualOperationMixesPerHour()
OperationMixStatsOperationMixStats.getActualAverageRuntime()getActualOperationMixesPerHour in interface OperationMixStatspublic ParallelTimer getTimer()
OperationMixStatsgetTimer in interface OperationMixStatspublic void add(OperationMixRun run)
OperationMixStatsadd in interface OperationMixStatsrun - Run informationCopyright © 2015. All rights reserved.