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