public class StatisticsHandler extends AbstractStatisticsHandler
_string| Constructor and Description |
|---|
StatisticsHandler() |
| Modifier and Type | Method and Description |
|---|---|
int |
getRequests() |
int |
getRequestsActive() |
int |
getRequestsActiveMax() |
long |
getRequestTimeAverage() |
long |
getRequestTimeMax() |
long |
getRequestTimeMin() |
long |
getRequestTimeTotal() |
int |
getResponses1xx() |
int |
getResponses2xx() |
int |
getResponses3xx() |
int |
getResponses4xx() |
int |
getResponses5xx() |
long |
getStatsOnMs() |
void |
handle(String target,
HttpServletRequest request,
HttpServletResponse response,
int dispatch)
Handle a request.
|
void |
statsReset()
Resets the current request statistics.
|
doStartaddHandler, doStop, expandChildren, getHandler, removeHandler, setHandler, setServerexpandHandler, getChildHandlerByClass, getChildHandlers, getChildHandlersByClassdestroy, getServer, toStringaddLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stoppublic void handle(String target, HttpServletRequest request, HttpServletResponse response, int dispatch) throws IOException, ServletException
Handlerhandle in interface Handlerhandle in class HandlerWrappertarget - The target of the request - either a URI or a name.request - The request either as the Request
object or a wrapper of that request. The HttpConnection.getCurrentConnection()
method can be used access the Request object if required.response - The response as the Response
object or a wrapper of that request. The HttpConnection.getCurrentConnection()
method can be used access the Response object if required.dispatch - The dispatch mode: Handler.REQUEST, Handler.FORWARD, Handler.INCLUDE, Handler.ERRORIOExceptionServletExceptionpublic void statsReset()
AbstractStatisticsHandlerstatsReset in class AbstractStatisticsHandlerpublic int getRequests()
getRequests in class AbstractStatisticsHandlerAbstractStatisticsHandler.statsReset() was last called.public int getRequestsActive()
getRequestsActive in class AbstractStatisticsHandlerAbstractStatisticsHandler.statsReset() was last called.public int getRequestsActiveMax()
getRequestsActiveMax in class AbstractStatisticsHandlerAbstractStatisticsHandler.statsReset() was last called.public int getResponses1xx()
getResponses1xx in class AbstractStatisticsHandlerAbstractStatisticsHandler.statsReset() was last called.public int getResponses2xx()
getResponses2xx in class AbstractStatisticsHandlerAbstractStatisticsHandler.statsReset() was last called.public int getResponses3xx()
getResponses3xx in class AbstractStatisticsHandlerAbstractStatisticsHandler.statsReset() was last called.public int getResponses4xx()
getResponses4xx in class AbstractStatisticsHandlerAbstractStatisticsHandler.statsReset() was last called.public int getResponses5xx()
getResponses5xx in class AbstractStatisticsHandlerAbstractStatisticsHandler.statsReset() was last called.public long getStatsOnMs()
getStatsOnMs in class AbstractStatisticsHandlerAbstractStatisticsHandler.statsReset().public long getRequestTimeMin()
getRequestTimeMin in class AbstractStatisticsHandlerAbstractStatisticsHandler.statsReset() was last called.public long getRequestTimeMax()
getRequestTimeMax in class AbstractStatisticsHandlerAbstractStatisticsHandler.statsReset() was last called.public long getRequestTimeTotal()
getRequestTimeTotal in class AbstractStatisticsHandlerAbstractStatisticsHandler.statsReset() was last called.public long getRequestTimeAverage()
getRequestTimeAverage in class AbstractStatisticsHandlerAbstractStatisticsHandler.statsReset() was last called.AbstractStatisticsHandler.getRequestTimeTotal(),
AbstractStatisticsHandler.getRequests()Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.