Class MethodExecStore

java.lang.Object
org.apache.juneau.rest.stats.MethodExecStore

public class MethodExecStore extends Object
Method execution statistics database.

Used for tracking basic call statistics on Java methods.

See Also:
  • Constructor Details

  • Method Details

    • create

      public static MethodExecStore.Builder create(BeanStore beanStore)
      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

      public String getReport()
      Returns the timing information returned by getStatsByTotalTime() 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.