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()
MethodStatisticsLogger
timestamp
in interface MethodStatisticsLogger
public void duration(long fromTimestamp)
MethodStatisticsLogger
duration
in interface MethodStatisticsLogger
public void incFailureCnt()
MethodStatisticsLogger
incFailureCnt
in interface MethodStatisticsLogger
public void reset()
MethodStatisticsLogger
reset
in interface MethodStatisticsLogger
public long getInvocationCnt()
getInvocationCnt
in interface MethodStatisticsLogger
public long getFailedInvocationCnt()
getFailedInvocationCnt
in interface MethodStatisticsLogger
public long getAvgExecutionTime()
getAvgExecutionTime
in interface MethodStatisticsLogger
public long getTotalExecutionTime()
getTotalExecutionTime
in interface MethodStatisticsLogger
Copyright © 2021 JBoss by Red Hat. All rights reserved.