Class MethodExecStore
java.lang.Object
org.apache.juneau.rest.server.stats.MethodExecStore
Method execution statistics database.
Used for tracking basic call statistics on Java methods.
See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMethodExecStore(MethodExecStore.Builder builder) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic MethodExecStore.Buildercreate()Static creator.static MethodExecStore.BuilderStatic 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 builder for this object. Must not benull .
-
-
Method Details
-
create
Static creator.- Returns:
- A new builder for this object.
-
create
Static creator.- Parameters:
beanStore- The bean store to use for creating beans.- Returns:
- A new builder for this object.
-
getReport
Returns the timing information returned bygetStatsByTotalTime()in a readable format.- Returns:
- A report of all method execution times ordered by total time descending.
-
getStats
Returns all the statistics in this store.- Returns:
- All the statistics in this store.
-
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. Must not benull .- Returns:
- The statistics for the specified method. Never
null .
-
getStatsByTotalTime
Returns timing information on all method executions on this class.- Returns:
- A list of timing statistics ordered by average execution time descending.
-
getThrownStore
Returns the thrown exception store being used by this store.- Returns:
- The thrown exception store being used by this store.
-