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 voidduration(long fromTimestamp)Calculate lenght of time bewteen current time and provided timelonggetAvgExecutionTime()longgetFailedInvocationCnt()longgetInvocationCnt()longgetTotalExecutionTime()voidincFailureCnt()Count reported failure of method invocationvoidreset()Reinitialize statisticslongtimestamp()Retrieve current time 
 - 
 
- 
- 
Method Detail
- 
timestamp
public long timestamp()
Description copied from interface:MethodStatisticsLoggerRetrieve current time- Specified by:
 timestampin interfaceMethodStatisticsLogger- Returns:
 
 
- 
duration
public void duration(long fromTimestamp)
Description copied from interface:MethodStatisticsLoggerCalculate lenght of time bewteen current time and provided time- Specified by:
 durationin interfaceMethodStatisticsLogger
 
- 
incFailureCnt
public void incFailureCnt()
Description copied from interface:MethodStatisticsLoggerCount reported failure of method invocation- Specified by:
 incFailureCntin interfaceMethodStatisticsLogger
 
- 
reset
public void reset()
Description copied from interface:MethodStatisticsLoggerReinitialize statistics- Specified by:
 resetin interfaceMethodStatisticsLogger
 
- 
getInvocationCnt
public long getInvocationCnt()
- Specified by:
 getInvocationCntin interfaceMethodStatisticsLogger
 
- 
getFailedInvocationCnt
public long getFailedInvocationCnt()
- Specified by:
 getFailedInvocationCntin interfaceMethodStatisticsLogger
 
- 
getAvgExecutionTime
public long getAvgExecutionTime()
- Specified by:
 getAvgExecutionTimein interfaceMethodStatisticsLogger
 
- 
getTotalExecutionTime
public long getTotalExecutionTime()
- Specified by:
 getTotalExecutionTimein interfaceMethodStatisticsLogger
 
 - 
 
 -