@AMXMetadata(type="web-request-mon", group="monitoring") @ManagedObject @Description(value="Web Request Statistics") public class RequestStatsProvider extends Object
Constructor and Description |
---|
RequestStatsProvider(String appName,
String vsName) |
Modifier and Type | Method and Description |
---|---|
org.glassfish.external.statistics.CountStatistic |
getErrorCount() |
org.glassfish.external.statistics.CountStatistic |
getMaxTime() |
String |
getModuleName() |
org.glassfish.external.statistics.CountStatistic |
getProcessingTime() |
long |
getProcessTime() |
org.glassfish.external.statistics.CountStatistic |
getRequestCount() |
String |
getVSName() |
void |
requestEndEvent(String appName,
String hostName,
String serverName,
int serverPort,
String contextPath,
String servletPath,
int statusCode,
String method,
String uri) |
void |
requestStartEvent(String appName,
String hostName,
String serverName,
int serverPort,
String contextPath,
String servletPath) |
void |
reset() |
@ManagedAttribute(id="errorcount") @Description(value="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()
@ManagedAttribute(id="requestcount") @Description(value="Cumulative number of requests processed so far") public org.glassfish.external.statistics.CountStatistic getRequestCount()
@ManagedAttribute(id="maxtime") @Description(value="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()
@ManagedAttribute(id="processingtime") @Description(value="Average request processing time") public org.glassfish.external.statistics.CountStatistic getProcessingTime()
public void requestStartEvent(String appName, String hostName, String serverName, int serverPort, String contextPath, String servletPath)
public void requestEndEvent(String appName, String hostName, String serverName, int serverPort, String contextPath, String servletPath, int statusCode, String method, String uri)
public long getProcessTime()
public String getModuleName()
public String getVSName()
public void reset()
Copyright © 2020. All rights reserved.