Package org.jboss.resteasy.statistics
Class MethodStatisticsLoggerImpl
- java.lang.Object
-
- org.jboss.resteasy.statistics.MethodStatisticsLoggerImpl
-
- All Implemented Interfaces:
MethodStatisticsLogger
public class MethodStatisticsLoggerImpl extends Object implements MethodStatisticsLogger
-
-
Constructor Summary
Constructors Constructor Description MethodStatisticsLoggerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
duration(long fromTimestamp)
Calculate lenght of time bewteen current time and provided timelong
getAvgExecutionTime()
long
getFailedInvocationCnt()
long
getInvocationCnt()
long
getTotalExecutionTime()
void
incFailureCnt()
Count reported failure of method invocationvoid
reset()
Reinitialize statisticslong
timestamp()
Retrieve current time
-
-
-
Method Detail
-
timestamp
public long timestamp()
Description copied from interface:MethodStatisticsLogger
Retrieve current time- Specified by:
timestamp
in interfaceMethodStatisticsLogger
- Returns:
-
duration
public void duration(long fromTimestamp)
Description copied from interface:MethodStatisticsLogger
Calculate lenght of time bewteen current time and provided time- Specified by:
duration
in interfaceMethodStatisticsLogger
-
incFailureCnt
public void incFailureCnt()
Description copied from interface:MethodStatisticsLogger
Count reported failure of method invocation- Specified by:
incFailureCnt
in interfaceMethodStatisticsLogger
-
reset
public void reset()
Description copied from interface:MethodStatisticsLogger
Reinitialize statistics- Specified by:
reset
in interfaceMethodStatisticsLogger
-
getInvocationCnt
public long getInvocationCnt()
- Specified by:
getInvocationCnt
in interfaceMethodStatisticsLogger
-
getFailedInvocationCnt
public long getFailedInvocationCnt()
- Specified by:
getFailedInvocationCnt
in interfaceMethodStatisticsLogger
-
getAvgExecutionTime
public long getAvgExecutionTime()
- Specified by:
getAvgExecutionTime
in interfaceMethodStatisticsLogger
-
getTotalExecutionTime
public long getTotalExecutionTime()
- Specified by:
getTotalExecutionTime
in interfaceMethodStatisticsLogger
-
-