FileDocCategorySizeDatePackage
ServletTimeStatisticImpl.javaAPI DocGlassfish v2 API3591Fri May 04 22:36:08 BST 2007com.sun.enterprise.web.stats

ServletTimeStatisticImpl

public class ServletTimeStatisticImpl extends com.sun.enterprise.admin.monitor.stats.TimeStatisticImpl

Fields Summary
private com.sun.enterprise.web.monitor.PwcServletStats
servletStats
Constructors Summary
public ServletTimeStatisticImpl(String name, String unit, com.sun.enterprise.web.monitor.PwcServletStats servletStats)
Constructor.

    
        super(name, unit);
        this.servletStats = servletStats;
    
Methods Summary
public longgetCount()
Returns the number of times an operation was invoked

return
long indicating the number of invocations

        return servletStats.getRequestCount();
    
public longgetMaxTime()
Returns the maximum amount of time that it took for one invocation of an operation, since measurement started.

return
long indicating the maximum time for one invocation

        return servletStats.getMaxTimeMillis();
    
public longgetMinTime()
Returns the minimum amount of time that it took for one invocation of an operation, since measurement started.

return
long indicating the minimum time for one invocation

        return servletStats.getMinTimeMillis();
    
public longgetTotalTime()
Returns the amount of time that it took for all invocations, since measurement started.

return
long indicating the total time for all invocation

        return servletStats.getProcessingTimeMillis();