public class InvocationStatisticsCalculator extends Object implements InvocationStatistics
| Constructor and Description |
|---|
InvocationStatisticsCalculator(String name,
int historySize) |
| Modifier and Type | Method and Description |
|---|---|
long |
getAverageTime() |
long |
getCallCount() |
long |
getErrorCount() |
String |
getName() |
long |
getTotalTime() |
void |
reset() |
String |
toString() |
public InvocationStatisticsCalculator(String name, int historySize)
name - the name of this API methodhistorySize - the number of calls to track (for invocation time averaging)public String getName()
getName in interface InvocationStatisticspublic long getCallCount()
getCallCount in interface InvocationStatisticspublic long getErrorCount()
getErrorCount in interface InvocationStatisticspublic long getTotalTime()
getTotalTime in interface InvocationStatisticspublic long getAverageTime()
getAverageTime in interface InvocationStatisticspublic void reset()
reset in interface InvocationStatisticsCopyright © 2018. All rights reserved.