org.mortbay.jetty.servlet.jsr77
Class ServletStatsImpl

java.lang.Object
  extended by org.mortbay.jetty.servlet.jsr77.ServletStatsImpl
All Implemented Interfaces:
Serializable, javax.management.j2ee.statistics.ServletStats, javax.management.j2ee.statistics.Stats

public class ServletStatsImpl
extends Object
implements javax.management.j2ee.statistics.ServletStats, Serializable

Jsr77ServletStats Implementation of ServletStats from JSR77 specification.

Author:
janb
See Also:
Serialized Form

Constructor Summary
ServletStatsImpl(String servletName)
           
 
Method Summary
 String getName()
           
 javax.management.j2ee.statistics.TimeStatistic getServiceTime()
           
 javax.management.j2ee.statistics.Statistic getStatistic(String statisticName)
          Get the TimeStatistic
 String[] getStatisticNames()
          Get the names of supported statistics.
 javax.management.j2ee.statistics.Statistic[] getStatistics()
          Get an object of all the types of statistics supported.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServletStatsImpl

public ServletStatsImpl(String servletName)
Method Detail

getServiceTime

public javax.management.j2ee.statistics.TimeStatistic getServiceTime()
Specified by:
getServiceTime in interface javax.management.j2ee.statistics.ServletStats
See Also:
ServletStats.getServiceTime()

getStatistic

public javax.management.j2ee.statistics.Statistic getStatistic(String statisticName)
Get the TimeStatistic

Specified by:
getStatistic in interface javax.management.j2ee.statistics.Stats
See Also:
Stats.getStatistic(java.lang.String)

getStatisticNames

public String[] getStatisticNames()
Get the names of supported statistics. For ServletStats, only the TimeStatistic is supported

Specified by:
getStatisticNames in interface javax.management.j2ee.statistics.Stats
See Also:
Stats.getStatisticNames()

getStatistics

public javax.management.j2ee.statistics.Statistic[] getStatistics()
Get an object of all the types of statistics supported. For ServletStats, only the TimeStatistic is supported.

Specified by:
getStatistics in interface javax.management.j2ee.statistics.Stats
See Also:
Stats.getStatistics()

getName

public String getName()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.