org.mortbay.jetty.handler
Class AbstractStatisticsHandler
java.lang.Object
org.mortbay.component.AbstractLifeCycle
org.mortbay.jetty.handler.AbstractHandler
org.mortbay.jetty.handler.AbstractHandlerContainer
org.mortbay.jetty.handler.HandlerWrapper
org.mortbay.jetty.handler.AbstractStatisticsHandler
- All Implemented Interfaces:
- LifeCycle, Handler, HandlerContainer
- Direct Known Subclasses:
- AtomicStatisticsHandler, StatisticsHandler
public abstract class AbstractStatisticsHandler
- extends HandlerWrapper
- Version:
- $Revision: 5236 $ $Date: 2009-06-17 07:36:08 +1000 (Wed, 17 Jun 2009) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AbstractStatisticsHandler
public AbstractStatisticsHandler()
doStart
protected void doStart()
throws java.lang.Exception
- Overrides:
doStart
in class HandlerWrapper
- Throws:
java.lang.Exception
statsReset
public abstract void statsReset()
- Resets the current request statistics.
getRequests
public abstract int getRequests()
- Returns:
- the number of requests handled by this handler
since
statsReset()
was last called.
getRequestsActive
public abstract int getRequestsActive()
- Returns:
- the number of requests currently active.
since
statsReset()
was last called.
getRequestsActiveMax
public abstract int getRequestsActiveMax()
- Returns:
- the maximum number of active requests
since
statsReset()
was last called.
getResponses1xx
public abstract int getResponses1xx()
- Returns:
- the number of responses with a 1xx status returned by this context
since
statsReset()
was last called.
getResponses2xx
public abstract int getResponses2xx()
- Returns:
- the number of responses with a 2xx status returned by this context
since
statsReset()
was last called.
getResponses3xx
public abstract int getResponses3xx()
- Returns:
- the number of responses with a 3xx status returned by this context
since
statsReset()
was last called.
getResponses4xx
public abstract int getResponses4xx()
- Returns:
- the number of responses with a 4xx status returned by this context
since
statsReset()
was last called.
getResponses5xx
public abstract int getResponses5xx()
- Returns:
- the number of responses with a 5xx status returned by this context
since
statsReset()
was last called.
getStatsOnMs
public abstract long getStatsOnMs()
- Returns:
- the milliseconds since the statistics were started with
statsReset()
.
getRequestTimeMin
public abstract long getRequestTimeMin()
- Returns:
- the minimum time (in milliseconds) of request handling
since
statsReset()
was last called.
getRequestTimeMax
public abstract long getRequestTimeMax()
- Returns:
- the maximum time (in milliseconds) of request handling
since
statsReset()
was last called.
getRequestTimeTotal
public abstract long getRequestTimeTotal()
- Returns:
- the total time (in milliseconds) of requests handling
since
statsReset()
was last called.
getRequestTimeAverage
public abstract long getRequestTimeAverage()
- Returns:
- the average time (in milliseconds) of request handling
since
statsReset()
was last called. - See Also:
getRequestTimeTotal()
,
getRequests()
Copyright © 1995-2010 Mort Bay Consulting. All Rights Reserved.