public class OperationMixRunImpl extends Object implements OperationMixRun
| Modifier and Type | Field and Description |
|---|---|
protected long |
order |
protected List<OperationRun> |
runs |
| Constructor and Description |
|---|
OperationMixRunImpl(Collection<OperationRun> runs,
long runOrder)
Creates a new operation mix run which represents the results of running a
mix of operations
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(OperationMixRun other)
Compares one run to another
|
long |
getMaximumRuntime()
Gets the runtime of the operation from the set that took the longest time
to run
|
int |
getMaximumRuntimeOperationID()
Gets the ID of the operation that took the longest time to run
|
long |
getMinimumRuntime()
Gets the runtime of the operation from the set that took the shortest
time to run
|
int |
getMinimumRuntimeOperationID()
Gets the ID of the operation that took the shortest time to run
|
long |
getRunCount()
Gets the number of operations runs that comprised this mix run
|
long |
getRunOrder()
Gets the global run order that reflects the order in which the operation
mixes and operations were run
|
Iterator<OperationRun> |
getRuns()
Gets an iterator over the runs that make up this operation mix
|
List<OperationRun> |
getRuns(int id)
Gets the list of run information for the given operation ID, if there are
no runs for that given operation within this mix run then an empty list
is returned.
|
long |
getTotalErrors()
Gets the total number of errors for the operation mix
|
long |
getTotalResponseTime()
Gets the total response time for the Operation Mix
|
long |
getTotalResults()
Gets the total number of results for the operation mix
|
long |
getTotalRuntime()
Gets the total runtime for the Operation Mix
|
protected List<OperationRun> runs
protected long order
public OperationMixRunImpl(Collection<OperationRun> runs, long runOrder)
runs - Operation runs which make up this mix runrunOrder - Global Run Orderpublic Iterator<OperationRun> getRuns()
OperationMixRun
Implementations need not make any guarantee that the runs are returned in
any specific order, users should not rely on the order
of runs in order to look up their associated operations. The recommended
way to do this is to use the OperationRun.getId() to obtain the
ID of the associated operation and then call
OperationMix.getOperation(int) to look up the actual operation.
getRuns in interface OperationMixRunpublic List<OperationRun> getRuns(int id)
OperationMixRungetRuns in interface OperationMixRunid - Operation IDpublic long getRunCount()
OperationMixRungetRunCount in interface OperationMixRunpublic long getRunOrder()
OperationMixRungetRunOrder in interface OperationMixRunpublic long getTotalErrors()
OperationMixRungetTotalErrors in interface OperationMixRunpublic long getTotalResults()
OperationMixRungetTotalResults in interface OperationMixRunpublic long getTotalRuntime()
OperationMixRungetTotalRuntime in interface OperationMixRunpublic long getTotalResponseTime()
OperationMixRungetTotalResponseTime in interface OperationMixRunpublic long getMinimumRuntime()
OperationMixRungetMinimumRuntime in interface OperationMixRunpublic int getMinimumRuntimeOperationID()
OperationMixRungetMinimumRuntimeOperationID in interface OperationMixRunpublic long getMaximumRuntime()
OperationMixRungetMaximumRuntime in interface OperationMixRunpublic int getMaximumRuntimeOperationID()
OperationMixRungetMaximumRuntimeOperationID in interface OperationMixRunpublic int compareTo(OperationMixRun other)
Used for sorting the runs so that outliers can be trimmed
compareTo in interface Comparable<OperationMixRun>Copyright © 2015. All rights reserved.