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()
OperationMixStats
getRuns
in interface OperationMixStats
public long getRunCount()
OperationMixStats
getRunCount
in interface OperationMixStats
public void clear()
OperationMixStats
clear
in interface OperationMixStats
public void trim(int outliers)
OperationMixStats
trim
in interface OperationMixStats
outliers
- Number of outliers to trimpublic long getTotalOperations()
OperationMixStats
getTotalOperations
in interface OperationMixStats
public long getTotalErrors()
OperationMixStats
getTotalErrors
in interface OperationMixStats
public Map<Integer,List<OperationRun>> getCategorizedErrors()
OperationMixStats
getCategorizedErrors
in interface OperationMixStats
public long getTotalRuntime()
OperationMixStats
getTotalRuntime
in interface OperationMixStats
public long getActualRuntime()
OperationMixStats
getActualRuntime
in interface OperationMixStats
public long getTotalResponseTime()
OperationMixStats
getTotalResponseTime
in interface OperationMixStats
public long getAverageRuntime()
OperationMixStats
getAverageRuntime
in interface OperationMixStats
public long getActualAverageRuntime()
OperationMixStats
getActualAverageRuntime
in interface OperationMixStats
public long getAverageResponseTime()
OperationMixStats
getAverageResponseTime
in interface OperationMixStats
public double getGeometricAverageRuntime()
OperationMixStats
getGeometricAverageRuntime
in interface OperationMixStats
public long getMinimumRuntime()
OperationMixStats
getMinimumRuntime
in interface OperationMixStats
public long getMaximumRuntime()
OperationMixStats
getMaximumRuntime
in interface OperationMixStats
public double getVariance()
OperationMixStats
getVariance
in interface OperationMixStats
public double getStandardDeviation()
OperationMixStats
getStandardDeviation
in interface OperationMixStats
public double getOperationMixesPerHour()
OperationMixStats
getOperationMixesPerHour
in interface OperationMixStats
public double getActualOperationMixesPerHour()
OperationMixStats
OperationMixStats.getActualAverageRuntime()
getActualOperationMixesPerHour
in interface OperationMixStats
public ParallelTimer getTimer()
OperationMixStats
getTimer
in interface OperationMixStats
public void add(OperationMixRun run)
OperationMixStats
add
in interface OperationMixStats
run
- Run informationCopyright © 2015. All rights reserved.