public class CallStatistics extends Object
Constructor and Description |
---|
CallStatistics(int minMaxDelay)
Because firsts runs are always longer than real times, min and max
measurements can be delayed until the services is called a few times.
|
Modifier and Type | Method and Description |
---|---|
void |
addCall(Long executionTime,
boolean failure,
boolean error,
int nestedCalls) |
double |
getAvgNestedCalls() |
double |
getAvgResponseTime() |
long |
getErrors() |
long |
getFailures() |
long |
getHits() |
Long |
getMaxResponseTime() |
Long |
getMinResponseTime() |
public CallStatistics(int minMaxDelay)
minMaxDelay
- number of hits before starting to measure min and max times.public Long getMaxResponseTime()
public double getAvgResponseTime()
public long getFailures()
public long getErrors()
public long getHits()
public Long getMinResponseTime()
public double getAvgNestedCalls()
public void addCall(Long executionTime, boolean failure, boolean error, int nestedCalls)
Copyright © 2010–2016. All rights reserved.