package org.jboss.management.j2ee.statistics;
import org.jboss.management.j2ee.StatisticsConstants;
import javax.management.j2ee.statistics.ServletStats;
import javax.management.j2ee.statistics.TimeStatistic;
public class ServletStatsImpl extends StatsBase
implements ServletStats
{
private static final long serialVersionUID = -4174188800489609026L;
public ServletStatsImpl()
{
this(new TimeStatisticImpl("ServiceTime", StatisticsConstants.MILLISECOND,
"The execution time of the servlet"));
}
public ServletStatsImpl(TimeStatistic serviceTime)
{
addStatistic("ServiceTime", serviceTime);
}
public TimeStatistic getServiceTime()
{
return (TimeStatistic) getStatistic("ServiceTime");
}
}