Class StatActionInOut.StatAction
java.lang.Object
com.iohao.net.framework.core.flow.internal.StatActionInOut.StatAction
- Enclosing class:
StatActionInOut
Per-action statistics record holding execution count, total/average/max time cost,
error count, and time range distribution.
- Author:
- 渔民小镇
-
Method Summary
Modifier and TypeMethodDescriptionlongAverage time costAction exception trigger countAction execution count statisticslongMaximum time cost%s, Executed [%s] times, Exceptions [%s] times, Average Time Cost [%d], Maximum Time Cost [%s], Total Time Cost [%s] %sgetTimeRange(long time) Gets the corresponding TimeRange object based on the time cost.Time range listTotal time costtoString()
-
Method Details
-
getTimeRange
Gets the corresponding TimeRange object based on the time cost. If no corresponding time range is found, the last element in the configured List is used.- Parameters:
time- Time cost- Returns:
- TimeRange
-
getAvgTime
public long getAvgTime()Average time cost- Returns:
- Average time cost
-
toString
-
getTimeRangeList
Time range list -
getCmdInfo
-
getExecuteCount
Action execution count statistics -
getTotalTime
Total time cost -
getErrorCount
Action exception trigger count -
getMaxTime
public long getMaxTime()Maximum time cost -
getStatActionInOutToString
%s, Executed [%s] times, Exceptions [%s] times, Average Time Cost [%d], Maximum Time Cost [%s], Total Time Cost [%s] %s
-