Class MethodStatisticsLoggerImpl
java.lang.Object
org.jboss.resteasy.statistics.MethodStatisticsLoggerImpl
- All Implemented Interfaces:
MethodStatisticsLogger
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
MethodStatisticsLoggerImpl
public MethodStatisticsLoggerImpl()
-
-
Method Details
-
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
- Parameters:
fromTimestamp
-
-
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
-