public class StatisticsHandler extends HandlerWrapper
AbstractHandler.ErrorDispatchHandler_handler| Constructor and Description |
|---|
StatisticsHandler() |
destroy, expandChildren, getHandler, getHandlers, insertHandler, setHandlerexpandHandler, findContainerOf, getChildHandlerByClass, getChildHandlers, getChildHandlersByClass, setServerdoError, dumpThis, getServerpublic void statsReset()
public void handle(java.lang.String path,
Request baseRequest,
HttpServletRequest request,
HttpServletResponse response)
throws java.io.IOException,
ServletException
Handlerhandle in interface Handlerhandle in class HandlerWrapperpath - The target of the request - either a URI or a name.baseRequest - The original unwrapped request object.request - The request either as the Request object or a wrapper of that request. The
HttpConnection.getCurrentConnection().getHttpChannel().getRequest()
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().getHttpChannel().getResponse()
method can be used access the Response object if required.java.io.IOException - if unable to handle the request or response processingServletException - if unable to handle the request or response due to underlying servlet issueprotected void updateResponse(Request request)
protected void doStart()
throws java.lang.Exception
doStart in class AbstractHandlerjava.lang.Exceptionprotected void doStop()
throws java.lang.Exception
doStop in class AbstractHandlerjava.lang.Exceptionpublic int getRequests()
statsReset() was last called, excluding
active requestsgetAsyncDispatches()public int getRequestsActive()
statsReset() was last called.public int getRequestsActiveMax()
statsReset() was last called.public long getRequestTimeMax()
statsReset() was last called.public long getRequestTimeTotal()
statsReset() was last called.public double getRequestTimeMean()
statsReset() was last called.getRequestTimeTotal(),
getRequests()public double getRequestTimeStdDev()
statsReset() was last called.getRequestTimeTotal(),
getRequests()public int getDispatched()
statsReset() was last called, excluding
active dispatchespublic int getDispatchedActive()
statsReset() was last called, including
resumed requestspublic int getDispatchedActiveMax()
statsReset() was last called, including
resumed requestspublic long getDispatchedTimeMax()
statsReset() was last called.public long getDispatchedTimeTotal()
statsReset() was last called.public double getDispatchedTimeMean()
statsReset() was last called.getRequestTimeTotal(),
getRequests()public double getDispatchedTimeStdDev()
statsReset() was last called.getRequestTimeTotal(),
getRequests()public int getAsyncRequests()
statsReset() was last called, including
resumed requestsgetAsyncDispatches()public int getAsyncRequestsWaiting()
statsReset() was last called.public int getAsyncRequestsWaitingMax()
statsReset() was last called.public int getAsyncDispatches()
public int getExpires()
getAsyncDispatches()public int getResponses1xx()
statsReset() was last called.public int getResponses2xx()
statsReset() was last called.public int getResponses3xx()
statsReset() was last called.public int getResponses4xx()
statsReset() was last called.public int getResponses5xx()
statsReset() was last called.public long getStatsOnMs()
statsReset().public long getResponsesBytesTotal()
public java.lang.String toStatsHTML()
public java.util.concurrent.Future<java.lang.Void> shutdown()