org.apache.geronimo.management.stats
Class WebModuleStatsImpl

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

public class WebModuleStatsImpl
extends StatsImpl
implements WebModuleStats

Geronimo implementation of the JSR-77 style WebModule interface. This is not required by JSR-77, but provides useful statistics for a web app

See Also:
Serialized Form

Constructor Summary
WebModuleStatsImpl()
           
 
Method Summary
 CountStatistic getActiveSessionCount()
          Gets the number of currently active sessions.
 CountStatistic getExpiredSessionCount()
          Gets the number of sessions that have expired.
 CountStatistic getProcessingTime()
           
 CountStatistic getRejectedSessionCount()
          Gets the number of sessions that were not created because the maximum number of active sessions was reached.
 TimeStatistic getSessionAliveTime()
          Gets the time (in seconds) that an expired session had been alive.
 CountStatistic getSessionCount()
          Returns the total number of sessions created by this manager
 CountStatistic getStartupTime()
           
 CountStatistic getTldScanTime()
          Scan the TLD contents of all tag library descriptor files (including those inside the jars that are 'accesible' to this webapp) and register any application event listeners found there.
 void setActiveSessionCount(int activeSessionCount)
           
 void setExpiredSessionCount(int expiredSessionCount)
           
 void setLastSampleTime(long time)
           
 void setProcessingTime(long processingTime)
          These setters are used by native implementation
 void setRejectedSessionCount(int rejectedSessionCount)
           
 void setSessionAliveTime(int count, long minTime, long maxTime, long totalTime)
           
 void setSessionCount(int sessionCount)
           
 void setStartupTime(long startupTime)
           
 void setTldScanTime(long tldScanTime)
           
 
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

WebModuleStatsImpl

public WebModuleStatsImpl()
Method Detail

getProcessingTime

public CountStatistic getProcessingTime()
Specified by:
getProcessingTime in interface WebModuleStats
Returns:
The cumulative processing times of requests by all servlets in this Context

getStartupTime

public CountStatistic getStartupTime()
Specified by:
getStartupTime in interface WebModuleStats
Returns:
The time (in milliseconds) it took to start this context.

getTldScanTime

public CountStatistic getTldScanTime()
Description copied from interface: WebModuleStats
Scan the TLD contents of all tag library descriptor files (including those inside the jars that are 'accesible' to this webapp) and register any application event listeners found there.

Specified by:
getTldScanTime in interface WebModuleStats
Returns:

getSessionAliveTime

public TimeStatistic getSessionAliveTime()
Description copied from interface: WebModuleStats
Gets the time (in seconds) that an expired session had been alive. (count, max, total)

Specified by:
getSessionAliveTime in interface WebModuleStats
Returns:
Time (count, max, total) that an expired session had been alive.

getSessionCount

public CountStatistic getSessionCount()
Description copied from interface: WebModuleStats
Returns the total number of sessions created by this manager

Specified by:
getSessionCount in interface WebModuleStats
Returns:
Total number of sessions created by this manager

getActiveSessionCount

public CountStatistic getActiveSessionCount()
Description copied from interface: WebModuleStats
Gets the number of currently active sessions.

Specified by:
getActiveSessionCount in interface WebModuleStats
Returns:
Number of currently active sessions

getExpiredSessionCount

public CountStatistic getExpiredSessionCount()
Description copied from interface: WebModuleStats
Gets the number of sessions that have expired.

Specified by:
getExpiredSessionCount in interface WebModuleStats
Returns:
Number of sessions that have expired

getRejectedSessionCount

public CountStatistic getRejectedSessionCount()
Description copied from interface: WebModuleStats
Gets the number of sessions that were not created because the maximum number of active sessions was reached.

Specified by:
getRejectedSessionCount in interface WebModuleStats
Returns:
Number of rejected sessions

setProcessingTime

public void setProcessingTime(long processingTime)
These setters are used by native implementation


setStartupTime

public void setStartupTime(long startupTime)

setTldScanTime

public void setTldScanTime(long tldScanTime)

setSessionAliveTime

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

setSessionCount

public void setSessionCount(int sessionCount)

setActiveSessionCount

public void setActiveSessionCount(int activeSessionCount)

setExpiredSessionCount

public void setExpiredSessionCount(int expiredSessionCount)

setRejectedSessionCount

public void setRejectedSessionCount(int rejectedSessionCount)

setLastSampleTime

public void setLastSampleTime(long time)


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