org.glassfish.web.admin.monitor.statistics
Class HTTPListenerStatsImpl

java.lang.Object
  extended by org.glassfish.web.admin.monitor.statistics.HTTPListenerStatsImpl
All Implemented Interfaces:
MonitorContract

@Service
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
public class HTTPListenerStatsImpl
extends java.lang.Object
implements MonitorContract

A Stats interface to represent the statistical data exposed by an HTTP Listener. For v3 Prelude, following stats will be available errorCount, maxTime, processingTime, and requestCount


Constructor Summary
HTTPListenerStatsImpl()
           
 
Method Summary
 org.glassfish.external.statistics.CountStatistic getBytesReceived()
          Cumulative value of the bytesReceived by each of the RequestProcessors
 org.glassfish.external.statistics.CountStatistic getBytesSent()
          Cumulative value of the bytesSent by each of the RequestProcessors
 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 getCount3xx()
           
 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 getCountOpenConnections()
           
 org.glassfish.external.statistics.CountStatistic getCountOther()
           
 org.glassfish.external.statistics.CountStatistic getCurrentThreadCount()
          The number of request processing threads currently in the thread pool
 org.glassfish.external.statistics.CountStatistic getCurrentThreadsBusy()
          The number of request processing threads currently in the thread pool, serving requests.
 org.glassfish.external.statistics.CountStatistic getErrorCount()
          Cumulative value of the errorCount of each of the RequestProcessors.
 org.glassfish.external.statistics.CountStatistic getMaxOpenConnections()
           
 org.glassfish.external.statistics.CountStatistic getMaxSpareThreads()
          The maximum number of unused request processing threads that will be allowed to exist until the thread pool starts stopping the unnecessary threads.
 org.glassfish.external.statistics.CountStatistic getMaxThreads()
          The maximum number of request processing threads that are created by the listener.
 org.glassfish.external.statistics.CountStatistic getMaxTime()
          The longest response time for a request.
 org.glassfish.external.statistics.CountStatistic getMinSpareThreads()
          The number of request processing threads that will be created when this listener is first started.
 java.lang.String getName()
           
 org.glassfish.external.statistics.CountStatistic getProcessingTime()
          Cumulative value of the processing times of each of the RequestProcessors.
 org.glassfish.external.statistics.CountStatistic getRequestCount()
          Cumulative number of the requests processed so far, by the RequestProcessors.
 org.glassfish.external.statistics.Statistic getStatistic(java.lang.String statisticName)
           
 java.lang.String[] getStatisticNames()
           
 org.glassfish.external.statistics.Statistic[] getStatistics()
           
 ActionReport process(ActionReport report, java.lang.String filter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPListenerStatsImpl

public HTTPListenerStatsImpl()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface MonitorContract

process

public ActionReport process(ActionReport report,
                            java.lang.String filter)
Specified by:
process in interface MonitorContract

getBytesReceived

public org.glassfish.external.statistics.CountStatistic getBytesReceived()
Cumulative value of the bytesReceived by each of the RequestProcessors

Returns:
CountStatistic

getBytesSent

public org.glassfish.external.statistics.CountStatistic getBytesSent()
Cumulative value of the bytesSent by each of the RequestProcessors

Returns:
CountStatistic

getErrorCount

public org.glassfish.external.statistics.CountStatistic getErrorCount()
Cumulative value of the errorCount of each of the RequestProcessors. The errorCount represents the number of cases where the response code was >= 400

Returns:
CountStatistic

getCount200

public org.glassfish.external.statistics.CountStatistic getCount200()
Returns:
CountStatistic

getCount2xx

public org.glassfish.external.statistics.CountStatistic getCount2xx()

getCount302

public org.glassfish.external.statistics.CountStatistic getCount302()

getCount304

public org.glassfish.external.statistics.CountStatistic getCount304()

getCount3xx

public org.glassfish.external.statistics.CountStatistic getCount3xx()

getCount400

public org.glassfish.external.statistics.CountStatistic getCount400()

getCount401

public org.glassfish.external.statistics.CountStatistic getCount401()

getCount403

public org.glassfish.external.statistics.CountStatistic getCount403()

getCount404

public org.glassfish.external.statistics.CountStatistic getCount404()

getCount4xx

public org.glassfish.external.statistics.CountStatistic getCount4xx()

getCount503

public org.glassfish.external.statistics.CountStatistic getCount503()

getCount5xx

public org.glassfish.external.statistics.CountStatistic getCount5xx()

getCountOther

public org.glassfish.external.statistics.CountStatistic getCountOther()

getCountOpenConnections

public org.glassfish.external.statistics.CountStatistic getCountOpenConnections()

getMaxOpenConnections

public org.glassfish.external.statistics.CountStatistic getMaxOpenConnections()

getMaxTime

public org.glassfish.external.statistics.CountStatistic getMaxTime()
The longest response time for a request. This is not a cumulative value, but is the maximum of the response times for each of the RequestProcessors.

Returns:
CountStatistic

getProcessingTime

public org.glassfish.external.statistics.CountStatistic getProcessingTime()
Cumulative value of the processing times of each of the RequestProcessors. The processing time of a RequestProcessor is the average of request processing times over the request count.

Returns:
CountStatistic

getRequestCount

public org.glassfish.external.statistics.CountStatistic getRequestCount()
Cumulative number of the requests processed so far, by the RequestProcessors.

Returns:
CountStatistic

getCurrentThreadCount

public org.glassfish.external.statistics.CountStatistic getCurrentThreadCount()
The number of request processing threads currently in the thread pool

Returns:
CountStatistic

getCurrentThreadsBusy

public org.glassfish.external.statistics.CountStatistic getCurrentThreadsBusy()
The number of request processing threads currently in the thread pool, serving requests.

Returns:
CountStatistic

getMaxThreads

public org.glassfish.external.statistics.CountStatistic getMaxThreads()
The maximum number of request processing threads that are created by the listener. It determines the maximum number of simultaneous requests that can be handled

Returns:
CountStatistic

getMaxSpareThreads

public org.glassfish.external.statistics.CountStatistic getMaxSpareThreads()
The maximum number of unused request processing threads that will be allowed to exist until the thread pool starts stopping the unnecessary threads.

Returns:
CountStatistic

getMinSpareThreads

public org.glassfish.external.statistics.CountStatistic getMinSpareThreads()
The number of request processing threads that will be created when this listener is first started.

Returns:
CountStatistic

getStatistics

public org.glassfish.external.statistics.Statistic[] getStatistics()

getStatisticNames

public java.lang.String[] getStatisticNames()

getStatistic

public org.glassfish.external.statistics.Statistic getStatistic(java.lang.String statisticName)


Copyright © 2012 GlassFish Community. All Rights Reserved.