org.apache.geronimo.management.stats
Class WebConnectorStatsImpl

java.lang.Object
  extended by org.apache.geronimo.management.stats.StatsImpl
      extended by org.apache.geronimo.management.stats.WebConnectorStatsImpl
All Implemented Interfaces:
Serializable, Stats, WebConnectorStats

public class WebConnectorStatsImpl
extends StatsImpl
implements WebConnectorStats

Geronimo implementation of the JSR-77 style WebConnectorStats interface. This is not required by JSR-77, but provides useful statistics. This will be discovered by mejb using 'stats' attribute.

See Also:
Serialized Form

Constructor Summary
WebConnectorStatsImpl()
           
 
Method Summary
 RangeStatistic getActiveRequestCount()
          Gets the number of requests being processed concurrently (as well as the min and max since statistics gathering started).
 RangeStatisticImpl getActiveRequestCountImpl()
          Used to access the native implementation in order to call setters TODO implement these if needed by console
 CountStatistic getBytesReceivedCount()
           
 CountStatistic getBytesSentCount()
           
 CountStatistic getErrorCount()
          Gets the number of errors that have been returned since statistics gathering started.
 RangeStatistic getOpenConnectionCount()
          Gets the number of connections currently open (as well as the min and max since statistics gathering started).
 TimeStatisticImpl getRequestDurationImpl()
           
 TimeStatistic getRequestTime()
          Gets the Time statistics (count, total, Max, Min) for requests (includes figures across all requests since statistics gathering started)
 RangeStatistic getSpareThreadCount()
          Gets the number of threads currently available (as well as min and max since statistics gathering started.
 CountStatisticImpl getTotalErrorCountImpl()
           
 CountStatistic getTotalRequestCountImpl()
           
 void setActiveRequestCount(int activeRequestCount)
           
 void setBusyThreads(long current, long highWaterMark, long lowWaterMark, long upperBound, long lowerBound)
           
 void setBytesReceivedCount(long bytesReceived)
          These setters are used by native implementation
 void setBytesSentCount(long bytesSent)
           
 void setErrorCount(int errorCount)
           
 void setOpenConnection(long current, long highMark, long lowMark)
           
 void setRequestTime(int count, long minTime, long maxTime, long totalTime)
           
 
Methods inherited from class org.apache.geronimo.management.stats.StatsImpl
addStat, getStatistic, getStatisticNames, getStatistics, removeStat, setLastSampleTime, 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

WebConnectorStatsImpl

public WebConnectorStatsImpl()
Method Detail

getActiveRequestCount

public RangeStatistic getActiveRequestCount()
Description copied from interface: WebConnectorStats
Gets the number of requests being processed concurrently (as well as the min and max since statistics gathering started).

Specified by:
getActiveRequestCount in interface WebConnectorStats

getRequestTime

public TimeStatistic getRequestTime()
Description copied from interface: WebConnectorStats
Gets the Time statistics (count, total, Max, Min) for requests (includes figures across all requests since statistics gathering started)

Specified by:
getRequestTime in interface WebConnectorStats

getErrorCount

public CountStatistic getErrorCount()
Description copied from interface: WebConnectorStats
Gets the number of errors that have been returned since statistics gathering started.

Specified by:
getErrorCount in interface WebConnectorStats

getBytesSentCount

public CountStatistic getBytesSentCount()

getBytesReceivedCount

public CountStatistic getBytesReceivedCount()

getOpenConnectionCount

public RangeStatistic getOpenConnectionCount()
Description copied from interface: WebConnectorStats
Gets the number of connections currently open (as well as the min and max since statistics gathering started).

Specified by:
getOpenConnectionCount in interface WebConnectorStats

getSpareThreadCount

public RangeStatistic getSpareThreadCount()
Description copied from interface: WebConnectorStats
Gets the number of threads currently available (as well as min and max since statistics gathering started. current - The number of threads currently in the pool (currentThreadCount) - the number of threads currently serving requests (currentThreadBusy) HiMark - The maximum number of unused threads that will be allowed to exist until the thread pool starts stopping the unnecessary threads(maxSpareThread) UpperBound - The max number of threads created by the connector (maxThreads) LowerBound - The number of threads created by the connector in the begining (minSpareThread)

Specified by:
getSpareThreadCount in interface WebConnectorStats

setBytesReceivedCount

public void setBytesReceivedCount(long bytesReceived)
These setters are used by native implementation


setBytesSentCount

public void setBytesSentCount(long bytesSent)

setActiveRequestCount

public void setActiveRequestCount(int activeRequestCount)

setErrorCount

public void setErrorCount(int errorCount)

setRequestTime

public void setRequestTime(int count,
                           long minTime,
                           long maxTime,
                           long totalTime)

setOpenConnection

public void setOpenConnection(long current,
                              long highMark,
                              long lowMark)

setBusyThreads

public void setBusyThreads(long current,
                           long highWaterMark,
                           long lowWaterMark,
                           long upperBound,
                           long lowerBound)

getActiveRequestCountImpl

public RangeStatisticImpl getActiveRequestCountImpl()
Used to access the native implementation in order to call setters TODO implement these if needed by console


getRequestDurationImpl

public TimeStatisticImpl getRequestDurationImpl()

getTotalErrorCountImpl

public CountStatisticImpl getTotalErrorCountImpl()

getTotalRequestCountImpl

public CountStatistic getTotalRequestCountImpl()


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.