Package org.apache.juneau.rest.stats
Class MethodExecStore
java.lang.Object
org.apache.juneau.rest.stats.MethodExecStore
Method execution statistics database.
Used for tracking basic call statistics on Java methods.
See Also:
-
Nested Class Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
MethodExecStore
(MethodExecStore.Builder builder) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic MethodExecStore.Builder
create()
Static creator.static MethodExecStore.Builder
Static creator.Returns the timing information returned bygetStatsByTotalTime()
in a readable format.getStats()
Returns all the statistics in this store.Returns the statistics for the specified method.Returns timing information on all method executions on this class.Returns the thrown exception store being used by this store.
-
Constructor Details
-
MethodExecStore
Constructor.- Parameters:
builder
- The store to use for storing thrown exception statistics.
-
-
Method Details
-
create
Static creator.- Parameters:
beanStore
- The bean store to use for creating beans.- Returns:
- A new builder for this object.
-
create
Static creator.- Returns:
- A new builder for this object.
-
getStats
Returns the statistics for the specified method.Creates a new stats object if one has not already been created.
- Parameters:
m
- The method to return the statistics for.- Returns:
- The statistics for the specified method. Never
null .
-
getStats
Returns all the statistics in this store.- Returns:
- All the statistics in this store.
-
getStatsByTotalTime
Returns timing information on all method executions on this class.- Returns:
- A list of timing statistics ordered by average execution time descending.
-
getReport
Returns the timing information returned bygetStatsByTotalTime()
in a readable format.- Returns:
- A report of all method execution times ordered by .
-
getThrownStore
Returns the thrown exception store being used by this store.- Returns:
- The thrown exception store being used by this store.
-