Class ProfilerReportPOJO
- java.lang.Object
-
- de.hybris.platform.jmx.mbeans.impl.ProfilerReportPOJO
-
- All Implemented Interfaces:
ProfilingReportBean,ProfilingReportTemplate
@ManagedResource public class ProfilerReportPOJO extends java.lang.Object implements ProfilingReportBean
POJO which contains the collected/calculated "profiling data". This POJO will be transformed to aDynamicMBean.- Spring Bean ID:
- serviceLayerProfilingBean
-
-
Constructor Summary
Constructors Constructor Description ProfilerReportPOJO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetFailedExecutions()Returns the amount of failed method executions.longgetMaxExecutionTime()Returns max execution time of the profiled method.longgetMinExecutionTime()Returns min execution time of the profiled method.longgetTotalCount()Returns the total number of method calls of the profiled methodlonggetTotalTime()Returns the total execution time of the profiled methodvoidlogException()This method will be called by theProfilerimplementation (..voidlogExecutionTime(long executionTime, long calledAt)This method will be called by theProfilerimplementation.
-
-
-
Method Detail
-
logExecutionTime
@ManagedOperation public void logExecutionTime(long executionTime, long calledAt)This method will be called by theProfilerimplementation.- Specified by:
logExecutionTimein interfaceProfilingReportTemplate- Parameters:
executionTime- the exception timecalledAt- the point of time when the method was executed
-
logException
@ManagedOperation public void logException()
Description copied from interface:ProfilingReportTemplateThis method will be called by theProfilerimplementation (.. for manual testing it is very nice to to make this method accessible via JMX, too). This method will be used for incrementing an internal "failed execution counter"- Specified by:
logExceptionin interfaceProfilingReportTemplate
-
getMaxExecutionTime
@ManagedAttribute public long getMaxExecutionTime()
Returns max execution time of the profiled method.- Specified by:
getMaxExecutionTimein interfaceProfilingReportBean- Returns:
- maxExecutionTime the maximum execution time
- See Also:
ProfilingReportBean.getMaxExecutionTime()
-
getFailedExecutions
@ManagedAttribute public long getFailedExecutions()
Returns the amount of failed method executions.- Specified by:
getFailedExecutionsin interfaceProfilingReportBean- Returns:
- failedExecutions the amount of failed method executions
- See Also:
ProfilingReportBean.getFailedExecutions()
-
getMinExecutionTime
@ManagedAttribute public long getMinExecutionTime()
Returns min execution time of the profiled method.- Specified by:
getMinExecutionTimein interfaceProfilingReportBean- Returns:
- minExecutionTime the minimum execution time
- See Also:
ProfilingReportBean.getMinExecutionTime()
-
getTotalCount
@ManagedAttribute public long getTotalCount()
Returns the total number of method calls of the profiled method- Specified by:
getTotalCountin interfaceProfilingReportBean- Returns:
- totalCount the amount of method calls
- See Also:
ProfilingReportBean.getTotalCount()
-
getTotalTime
@ManagedAttribute public long getTotalTime()
Returns the total execution time of the profiled method- Specified by:
getTotalTimein interfaceProfilingReportBean- Returns:
- totalExecutionTime the execution time for all methods calls so far
- See Also:
ProfilingReportBean.getTotalTime()
-
-