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 InvocationStatistics
public long getCallCount()
getCallCount
in interface InvocationStatistics
public long getErrorCount()
getErrorCount
in interface InvocationStatistics
public long getTotalTime()
getTotalTime
in interface InvocationStatistics
public long getAverageTime()
getAverageTime
in interface InvocationStatistics
public void reset()
reset
in interface InvocationStatistics
Copyright © 2018. All rights reserved.