Package org.glassfish.web.admin.monitor
Class HttpServiceStatsProvider
- java.lang.Object
-
- org.glassfish.web.admin.monitor.HttpServiceStatsProvider
-
- All Implemented Interfaces:
org.glassfish.hk2.api.PostConstruct
@AMXMetadata(type="request-mon", group="monitoring") @ManagedObject @Description("Web Container HTTP Service Statistics") public class HttpServiceStatsProvider extends Object implements org.glassfish.hk2.api.PostConstruct
Provides the monitoring data at the Web container level- Author:
- Prashanth Abbagani, Amy Roh
-
-
Constructor Summary
Constructors Constructor Description HttpServiceStatsProvider(String vsName, String listeners, NetworkConfig networkConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
connectionAcceptedEvent(String listenerName, int connectionId, String address)
void
connectionClosedEvent(String listenerName, int connectionId)
void
dataReceivedEvent(int size, String hostName)
void
dataSentEvent(long size, String hostName)
org.glassfish.external.statistics.CountStatistic
getCount200()
org.glassfish.external.statistics.CountStatistic
getCount2xx()
org.glassfish.external.statistics.CountStatistic
getCount302()
org.glassfish.external.statistics.CountStatistic
getCount304()
org.glassfish.external.statistics.CountStatistic
getCount3xxt()
org.glassfish.external.statistics.CountStatistic
getCount400()
org.glassfish.external.statistics.CountStatistic
getCount401()
org.glassfish.external.statistics.CountStatistic
getCount403()
org.glassfish.external.statistics.CountStatistic
getCount404()
org.glassfish.external.statistics.CountStatistic
getCount4xx()
org.glassfish.external.statistics.CountStatistic
getCount503()
org.glassfish.external.statistics.CountStatistic
getCount5xx()
org.glassfish.external.statistics.CountStatistic
getCountBytesReceived()
org.glassfish.external.statistics.CountStatistic
getCountBytesTransmitted()
org.glassfish.external.statistics.CountStatistic
getCountOpenConnections()
org.glassfish.external.statistics.CountStatistic
getCountOther()
org.glassfish.external.statistics.CountStatistic
getCountRequests()
org.glassfish.external.statistics.CountStatistic
getErrorCount()
org.glassfish.external.statistics.CountStatistic
getMaxOpenConnections()
org.glassfish.external.statistics.CountStatistic
getMaxTime()
org.glassfish.external.statistics.StringStatistic
getMethod()
long
getProcessTime()
org.glassfish.external.statistics.CountStatistic
getTime()
org.glassfish.external.statistics.StringStatistic
getUri()
void
postConstruct()
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()
-
-
-
Constructor Detail
-
HttpServiceStatsProvider
public HttpServiceStatsProvider(String vsName, String listeners, NetworkConfig networkConfig)
-
-
Method Detail
-
postConstruct
public void postConstruct()
- Specified by:
postConstruct
in interfaceorg.glassfish.hk2.api.PostConstruct
-
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()
-
getTime
@ManagedAttribute(id="processingtime") @Description("Average request processing time") public org.glassfish.external.statistics.CountStatistic getTime()
-
getCountBytesReceived
@ManagedAttribute(id="countbytesreceived") @Description("The number of bytes received") public org.glassfish.external.statistics.CountStatistic getCountBytesReceived()
-
getCountBytesTransmitted
@ManagedAttribute(id="countbytestransmitted") @Description("The number of bytes transmitted") public org.glassfish.external.statistics.CountStatistic getCountBytesTransmitted()
-
getCountOpenConnections
@ManagedAttribute(id="countopenconnections") @Description("The number of open connections") public org.glassfish.external.statistics.CountStatistic getCountOpenConnections()
-
getCountRequests
@ManagedAttribute(id="countrequests") @Description("The number of requests received") public org.glassfish.external.statistics.CountStatistic getCountRequests()
-
getMaxOpenConnections
@ManagedAttribute(id="maxopenconnections") @Description("The maximum number of open connections") public org.glassfish.external.statistics.CountStatistic getMaxOpenConnections()
-
getMethod
@ManagedAttribute(id="method") @Description("The method of the last request serviced") public org.glassfish.external.statistics.StringStatistic getMethod()
-
getUri
@ManagedAttribute(id="uri") @Description("The URI of the last request serviced") public org.glassfish.external.statistics.StringStatistic getUri()
-
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()
-
getCount200
@ManagedAttribute(id="count200") @Description("Number of responses with a status code equal to 200") public org.glassfish.external.statistics.CountStatistic getCount200()
-
getCount2xx
@ManagedAttribute(id="count2xx") @Description("Number of responses with a status code in the 2xx range") public org.glassfish.external.statistics.CountStatistic getCount2xx()
-
getCount302
@ManagedAttribute(id="count302") @Description("Number of responses with a status code equal to 302") public org.glassfish.external.statistics.CountStatistic getCount302()
-
getCount304
@ManagedAttribute(id="count304") @Description("Number of responses with a status code equal to 304") public org.glassfish.external.statistics.CountStatistic getCount304()
-
getCount3xxt
@ManagedAttribute(id="count3xx") @Description("Number of responses with a status code in the 3xx range") public org.glassfish.external.statistics.CountStatistic getCount3xxt()
-
getCount400
@ManagedAttribute(id="count400") @Description("Number of responses with a status code equal to 400") public org.glassfish.external.statistics.CountStatistic getCount400()
-
getCount401
@ManagedAttribute(id="count401") @Description("Number of responses with a status code equal to 401") public org.glassfish.external.statistics.CountStatistic getCount401()
-
getCount403
@ManagedAttribute(id="count403") @Description("Number of responses with a status code equal to 403") public org.glassfish.external.statistics.CountStatistic getCount403()
-
getCount404
@ManagedAttribute(id="count404") @Description("Number of responses with a status code equal to 404") public org.glassfish.external.statistics.CountStatistic getCount404()
-
getCount4xx
@ManagedAttribute(id="count4xx") @Description("Number of responses with a status code in the 4xx range") public org.glassfish.external.statistics.CountStatistic getCount4xx()
-
getCount503
@ManagedAttribute(id="count503") @Description("Number of responses with a status code equal to 503") public org.glassfish.external.statistics.CountStatistic getCount503()
-
getCount5xx
@ManagedAttribute(id="count5xx") @Description("Number of responses with a status code in the 5xx range") public org.glassfish.external.statistics.CountStatistic getCount5xx()
-
getCountOther
@ManagedAttribute(id="countother") @Description("Number of responses with a status code outside the 2xx, 3xx, 4xx, and 5xx range") public org.glassfish.external.statistics.CountStatistic getCountOther()
-
dataReceivedEvent
public void dataReceivedEvent(int size, String hostName)
-
dataSentEvent
public void dataSentEvent(long size, String hostName)
-
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)
-
connectionAcceptedEvent
public void connectionAcceptedEvent(String listenerName, int connectionId, String address)
-
connectionClosedEvent
public void connectionClosedEvent(String listenerName, int connectionId)
-
getProcessTime
public long getProcessTime()
-
reset
public void reset()
-
-