Class MethodUsageStatistics
java.lang.Object
com.evolveum.midpoint.util.aspect.MethodUsageStatistics
This class provides functionality as a holder for method performance statistics. Currently, we are monitoring
  and updating following statistics:
     longest method call - MAX
     quickest method call - MIN
     average length of method call - MEAN
     number of method calls - USAGE_COUNT
  We also update these statistics every time specific method call is captured by MidpointInterceptor class and then
  processed by AspectProfilingFilters. This is performed in update() method that is synchronized for obvious
  reasons.
- Author:
- shood
- 
Constructor SummaryConstructorsConstructorDescriptionMethodUsageStatistics(ProfilingDataLog logEvent, ProfilingDataManager.Subsystem subsystem) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidappendToLogger(boolean afterTest) longlonggetMax()longgetMean()longgetMin()longlongvoidsetCurrentTopTenMin(long currentTopTenMin) voidsetMax(long max) voidsetMean(long mean) voidsetMin(long min) voidsetProcessTimeMean(long processTimeMean) voidsetSlowestMethodList(List<ProfilingDataLog> slowestMethodList) voidsetSubsystem(ProfilingDataManager.Subsystem subsystem) voidsetUsageCount(long usageCount) voidupdate(ProfilingDataLog logEvent) voidupdateProcessTimeList(long est) 
- 
Constructor Details- 
MethodUsageStatistics
 
- 
- 
Method Details- 
getProcessTimeMeanpublic long getProcessTimeMean()
- 
setProcessTimeMeanpublic void setProcessTimeMean(long processTimeMean) 
- 
getSubsystem
- 
setSubsystem
- 
getMinpublic long getMin()
- 
setMinpublic void setMin(long min) 
- 
getMaxpublic long getMax()
- 
setMaxpublic void setMax(long max) 
- 
getMeanpublic long getMean()
- 
setMeanpublic void setMean(long mean) 
- 
getUsageCountpublic long getUsageCount()
- 
setUsageCountpublic void setUsageCount(long usageCount) 
- 
getCurrentTopTenMinpublic long getCurrentTopTenMin()
- 
setCurrentTopTenMinpublic void setCurrentTopTenMin(long currentTopTenMin) 
- 
getSlowestMethodList
- 
setSlowestMethodList
- 
update
- 
updateProcessTimeListpublic void updateProcessTimeList(long est) 
- 
appendToLoggerpublic void appendToLogger(boolean afterTest) 
 
-