Class RequestStatsProvider

java.lang.Object
org.glassfish.web.admin.monitor.RequestStatsProvider

@AMXMetadata(type="web-request-mon", group="monitoring") @ManagedObject @Description("Web Request Statistics") public class RequestStatsProvider extends Object
Provides the monitoring data at the Web container level
Author:
Prashanth Abbagani
  • Constructor Details

    • RequestStatsProvider

      public RequestStatsProvider(String appName, String vsName)
  • Method Details

    • getErrorCount

      @ManagedAttribute(id="errorcount") @Description("Cumulative value of the error count, with error count representing the number of cases where the response code was greater than or equal to 400") public org.glassfish.external.statistics.CountStatistic getErrorCount()
    • getRequestCount

      @ManagedAttribute(id="requestcount") @Description("Cumulative number of requests processed so far") public org.glassfish.external.statistics.CountStatistic getRequestCount()
    • getMaxTime

      @ManagedAttribute(id="maxtime") @Description("Longest response time for a request; not a cumulative value, but the largest response time from among the response times") public org.glassfish.external.statistics.CountStatistic getMaxTime()
    • getProcessingTime

      @ManagedAttribute(id="processingtime") @Description("Average request processing time") public org.glassfish.external.statistics.CountStatistic getProcessingTime()
    • requestStartEvent

      public void requestStartEvent(String appName, String hostName, String serverName, int serverPort, String contextPath, String servletPath)
    • requestEndEvent

      public void requestEndEvent(String appName, String hostName, String serverName, int serverPort, String contextPath, String servletPath, int statusCode, String method, String uri)
    • getProcessTime

      public long getProcessTime()
    • getModuleName

      public String getModuleName()
    • getVSName

      public String getVSName()
    • reset

      public void reset()