1 23 24 package com.sun.enterprise.web.stats; 25 26 import com.sun.enterprise.admin.monitor.stats.TimeStatisticImpl; 27 import com.sun.enterprise.web.monitor.PwcServletStats; 28 29 public class ServletTimeStatisticImpl extends TimeStatisticImpl { 30 31 private PwcServletStats servletStats; 32 33 36 public ServletTimeStatisticImpl(String name, String unit, 37 PwcServletStats servletStats) { 38 super(name, unit); 39 this.servletStats = servletStats; 40 } 41 42 47 public long getCount() { 48 return servletStats.getRequestCount(); 49 } 50 51 57 public long getMaxTime() { 58 return servletStats.getMaxTimeMillis(); 59 } 60 61 67 public long getMinTime() { 68 return servletStats.getMinTimeMillis(); 69 } 70 71 77 public long getTotalTime() { 78 return servletStats.getProcessingTimeMillis(); 79 } 80 } 81 82 | Popular Tags |