public class MethodStatisticsLoggerImpl extends Object implements MethodStatisticsLogger
| Constructor and Description |
|---|
MethodStatisticsLoggerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
duration(long fromTimestamp)
Calculate lenght of time bewteen current time and provided time
|
long |
getAvgExecutionTime() |
long |
getFailedInvocationCnt() |
long |
getInvocationCnt() |
long |
getTotalExecutionTime() |
void |
incFailureCnt()
Count reported failure of method invocation
|
void |
reset()
Reinitialize statistics
|
long |
timestamp()
Retrieve current time
|
public long timestamp()
MethodStatisticsLoggertimestamp in interface MethodStatisticsLoggerpublic void duration(long fromTimestamp)
MethodStatisticsLoggerduration in interface MethodStatisticsLoggerpublic void incFailureCnt()
MethodStatisticsLoggerincFailureCnt in interface MethodStatisticsLoggerpublic void reset()
MethodStatisticsLoggerreset in interface MethodStatisticsLoggerpublic long getInvocationCnt()
getInvocationCnt in interface MethodStatisticsLoggerpublic long getFailedInvocationCnt()
getFailedInvocationCnt in interface MethodStatisticsLoggerpublic long getAvgExecutionTime()
getAvgExecutionTime in interface MethodStatisticsLoggerpublic long getTotalExecutionTime()
getTotalExecutionTime in interface MethodStatisticsLoggerCopyright © 2021 JBoss by Red Hat. All rights reserved.