Class ProfilerReportPOJO
java.lang.Object
de.hybris.platform.jmx.mbeans.impl.ProfilerReportPOJO
- All Implemented Interfaces:
ProfilingReportBean,ProfilingReportTemplate
POJO which contains the collected/calculated "profiling data". This POJO will be transformed to a
DynamicMBean.- Spring Bean ID:
- serviceLayerProfilingBean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the amount of failed method executions.longReturns max execution time of the profiled method.longReturns min execution time of the profiled method.longReturns the total number of method calls of the profiled methodlongReturns the total execution time of the profiled methodvoidThis method will be called by theProfilerimplementation (..voidlogExecutionTime(long executionTime, long calledAt) This method will be called by theProfilerimplementation.
-
Constructor Details
-
ProfilerReportPOJO
public ProfilerReportPOJO()
-
-
Method Details
-
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:
-
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:
-
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:
-
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:
-
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:
-