Class StatsMixin

java.lang.Object
org.apache.juneau.rest.server.servlet.RestMixin
org.apache.juneau.rest.server.ops.StatsMixin

public class StatsMixin extends RestMixin
Mixin providing the residual [GET /stats] timing-statistics endpoint.

Single-responsibility op-mixin carved out of the former BasicRestOperations interface. Carries the per-method @HtmlDocConfig that customizes the /stats HTML page. The per-method config travels with the op, while the host-wide navlinks/JSON-schema config lives at the class level on BasicRestServlet.

Since:
10.0.0
  • Constructor Details

  • Method Details

    • getStats

      [GET /stats] - Timing statistics.

      Timing statistics for method invocations on this resource.

      Parameters:
      req - The HTTP request.
      Returns:
      A collection of timing statistics for each annotated method on this resource.