|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OperationStats
Interface for classes that store and represent statistics about an operation
Method Summary | |
---|---|
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 getActualAverageRuntime() |
double |
getActualOperationsPerSecond()
Calculates how many times this operation could be executed multi-threaded per second based upon the 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 |
Method Detail |
---|
Iterator<OperationRun> getRuns()
long getRunCount()
long getTotalRuntime()
long getActualRuntime()
long getTotalResponseTime()
For non-streaming operations this will likely be equal to
getTotalRuntime()
long getAverageRuntime()
long getAverageResponseTime()
For non-streaming operations this will likely be equal to
getAverageRuntime()
double getGeometricAverageRuntime()
long getActualAverageRuntime()
long getMinimumRuntime()
long getMaximumRuntime()
double getVariance()
double getStandardDeviation()
long getTotalErrors()
Map<Integer,List<OperationRun>> getCategorizedErrors()
long getTotalResults()
long getAverageResults()
double getOperationsPerSecond()
double getActualOperationsPerSecond()
getActualAverageRuntime()
double getOperationsPerHour()
double getActualOperationsPerHour()
getActualAverageRuntime()
void add(OperationRun run)
run
- Run informationvoid clear()
void trim(int outliers)
outliers
- Number of outliers to trimParallelTimer getTimer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |