1 22 package org.jboss.management.j2ee.statistics; 23 24 import org.jboss.management.j2ee.StatisticsConstants; 25 26 import javax.management.j2ee.statistics.ServletStats ; 27 import javax.management.j2ee.statistics.TimeStatistic ; 28 29 35 public class ServletStatsImpl extends StatsBase 36 implements ServletStats 37 { 38 40 41 private static final long serialVersionUID = -4174188800489609026L; 42 43 45 public ServletStatsImpl() 46 { 47 this(new TimeStatisticImpl("ServiceTime", StatisticsConstants.MILLISECOND, 48 "The execution time of the servlet")); 49 } 50 51 public ServletStatsImpl(TimeStatistic serviceTime) 52 { 53 addStatistic("ServiceTime", serviceTime); 54 } 55 56 public TimeStatistic getServiceTime() 57 { 58 return (TimeStatistic ) getStatistic("ServiceTime"); 59 } 60 } 61 | Popular Tags |