org.apache.geronimo.management.geronimo.stats
Class JettyWebContainerStatsImpl

java.lang.Object
  extended by org.apache.geronimo.management.stats.StatsImpl
      extended by org.apache.geronimo.management.geronimo.stats.JettyWebContainerStatsImpl
All Implemented Interfaces:
Serializable, Stats, JettyWebContainerStats, WebContainerStats

public class JettyWebContainerStatsImpl
extends StatsImpl
implements JettyWebContainerStats

Jetty implementation of the Geronimo stats interface WebContainerStats

See Also:
Serialized Form

Constructor Summary
JettyWebContainerStatsImpl()
           
 
Method Summary
 RangeStatistic getActiveRequestCount()
          Public methods to return the interfaces for statistics.
 RangeStatisticImpl getActiveRequestCountImpl()
          Public methods to return the implementations for statistics.
 TimeStatistic getRequestDuration()
          Gets the the number of requests that have been processed since statistics gathering started.
 TimeStatisticImpl getRequestDurationImpl()
           
 CountStatistic getResponses1xx()
          Gets the count of 1xx responses
 CountStatisticImpl getResponses1xxImpl()
           
 CountStatistic getResponses2xx()
          Gets the count of 2xx responses
 CountStatisticImpl getResponses2xxImpl()
           
 CountStatistic getResponses3xx()
          Gets the count of 3xx responses
 CountStatisticImpl getResponses3xxImpl()
           
 CountStatistic getResponses4xx()
          Gets the count of 4xx responses
 CountStatisticImpl getResponses4xxImpl()
           
 CountStatistic getResponses5xx()
          Gets the count of 5xx responses
 CountStatisticImpl getResponses5xxImpl()
           
 CountStatistic getStatsOnMs()
          Gets the time duration that stats have been active.
 CountStatisticImpl getStatsOnMsImpl()
           
 
Methods inherited from class org.apache.geronimo.management.stats.StatsImpl
addStat, getStatistic, getStatisticNames, getStatistics, removeStat, setLastSampleTime, setStartTime, setStartTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.management.j2ee.statistics.Stats
getStatistic, getStatisticNames, getStatistics
 

Constructor Detail

JettyWebContainerStatsImpl

public JettyWebContainerStatsImpl()
Method Detail

getActiveRequestCount

public RangeStatistic getActiveRequestCount()
Public methods to return the interfaces for statistics. These are used by the objects (such as the web console) that retrieve the stats for presentation purposes.

Specified by:
getActiveRequestCount in interface WebContainerStats

getRequestDuration

public TimeStatistic getRequestDuration()
Description copied from interface: WebContainerStats
Gets the the number of requests that have been processed since statistics gathering started. Gets the length of time taken to process a request (includes figures across all requests since statistics gathering started)

Specified by:
getRequestDuration in interface WebContainerStats

getResponses1xx

public CountStatistic getResponses1xx()
Description copied from interface: WebContainerStats
Gets the count of 1xx responses

Specified by:
getResponses1xx in interface WebContainerStats
Returns:
Gets the number of 1xx status returned by this context since last call of stats reset.

getResponses2xx

public CountStatistic getResponses2xx()
Description copied from interface: WebContainerStats
Gets the count of 2xx responses

Specified by:
getResponses2xx in interface WebContainerStats
Returns:
Gets the number of 2xx status returned by this context since last call of stats reset.

getResponses3xx

public CountStatistic getResponses3xx()
Description copied from interface: WebContainerStats
Gets the count of 3xx responses

Specified by:
getResponses3xx in interface WebContainerStats
Returns:
Gets the number of 3xx status returned by this context since last call of stats reset.

getResponses4xx

public CountStatistic getResponses4xx()
Description copied from interface: WebContainerStats
Gets the count of 4xx responses

Specified by:
getResponses4xx in interface WebContainerStats
Returns:
Gets the number of 4xx status returned by this context since last call of stats reset.

getResponses5xx

public CountStatistic getResponses5xx()
Description copied from interface: WebContainerStats
Gets the count of 5xx responses

Specified by:
getResponses5xx in interface WebContainerStats
Returns:
Gets the number of 5xx status returned by this context since last call of stats reset.

getStatsOnMs

public CountStatistic getStatsOnMs()
Description copied from interface: WebContainerStats
Gets the time duration that stats have been active.

Specified by:
getStatsOnMs in interface WebContainerStats
Returns:
Time in millis since statistics collection was started.

getActiveRequestCountImpl

public RangeStatisticImpl getActiveRequestCountImpl()
Public methods to return the implementations for statistics. These are used by the JettyContainerImpl to set the values.


getRequestDurationImpl

public TimeStatisticImpl getRequestDurationImpl()

getResponses1xxImpl

public CountStatisticImpl getResponses1xxImpl()
Returns:
Gets the number of 1xx status returned by this context since last call of stats reset.

getResponses2xxImpl

public CountStatisticImpl getResponses2xxImpl()
Returns:
Gets the number of 2xx status returned by this context since last call of stats reset.

getResponses3xxImpl

public CountStatisticImpl getResponses3xxImpl()
Returns:
Gets the number of 3xx status returned by this context since last call of stats reset.

getResponses4xxImpl

public CountStatisticImpl getResponses4xxImpl()
Returns:
Gets the number of 4xx status returned by this context since last call of stats reset.

getResponses5xxImpl

public CountStatisticImpl getResponses5xxImpl()
Returns:
Gets the number of 5xx status returned by this context since last call of stats reset.

getStatsOnMsImpl

public CountStatisticImpl getStatsOnMsImpl()
Returns:
Time in millis since statistics collection was started.


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.