Package twitter4j.management
Class InvocationStatisticsCalculator
java.lang.Object
twitter4j.management.InvocationStatisticsCalculator
- All Implemented Interfaces:
InvocationStatistics
Object that collects/aggregates statistics for the invocation of a given method.
-
Constructor Details
-
InvocationStatisticsCalculator
- Parameters:
name
- the name of this API methodhistorySize
- the number of calls to track (for invocation time averaging)
-
-
Method Details
-
getName
Description copied from interface:InvocationStatistics
return name- Specified by:
getName
in interfaceInvocationStatistics
- Returns:
- name
-
getCallCount
public long getCallCount()Description copied from interface:InvocationStatistics
return call count- Specified by:
getCallCount
in interfaceInvocationStatistics
- Returns:
- call count
-
getErrorCount
public long getErrorCount()Description copied from interface:InvocationStatistics
return error count- Specified by:
getErrorCount
in interfaceInvocationStatistics
- Returns:
- error count
-
getTotalTime
public long getTotalTime()Description copied from interface:InvocationStatistics
returns total time- Specified by:
getTotalTime
in interfaceInvocationStatistics
- Returns:
- total time
-
getAverageTime
public long getAverageTime()Description copied from interface:InvocationStatistics
return average time- Specified by:
getAverageTime
in interfaceInvocationStatistics
- Returns:
- average time
-
reset
public void reset()Description copied from interface:InvocationStatistics
reset statistics- Specified by:
reset
in interfaceInvocationStatistics
-
toString
-