org.eclipse.jetty.server.handler
类 StatisticsHandler
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AggregateLifeCycle
org.eclipse.jetty.server.handler.AbstractHandler
org.eclipse.jetty.server.handler.AbstractHandlerContainer
org.eclipse.jetty.server.handler.HandlerWrapper
org.eclipse.jetty.server.handler.StatisticsHandler
- 所有已实现的接口:
- Handler, HandlerContainer, Destroyable, Dumpable, LifeCycle
public class StatisticsHandler
- extends HandlerWrapper
| 从类 org.eclipse.jetty.util.component.AggregateLifeCycle 继承的方法 |
addBean, addBean, contains, dump, dump, dump, dump, dumpObject, dumpStdErr, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, unmanage |
| 从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的方法 |
addLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop |
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatisticsHandler
public StatisticsHandler()
statsReset
public void statsReset()
- Resets the current request statistics.
handle
public void handle(String path,
Request request,
HttpServletRequest httpRequest,
HttpServletResponse httpResponse)
throws IOException,
ServletException
- 从接口
Handler 复制的描述
- Handle a request.
- 指定者:
- 接口
Handler 中的 handle - 覆盖:
- 类
HandlerWrapper 中的 handle
- 参数:
path - The target of the request - either a URI or a name.request - The original unwrapped request object.httpRequest - The request either as the Request
object or a wrapper of that request. The AbstractHttpConnection.getCurrentConnection()
method can be used access the Request object if required.httpResponse - The response as the Response
object or a wrapper of that request. The AbstractHttpConnection.getCurrentConnection()
method can be used access the Response object if required.
- 抛出:
IOException
ServletException
doStart
protected void doStart()
throws Exception
- 从类
AggregateLifeCycle 复制的描述
- Start the managed lifecycle beans in the order they were added.
- 覆盖:
- 类
HandlerWrapper 中的 doStart
- 抛出:
Exception- 另请参见:
AbstractLifeCycle.doStart()
getRequests
public int getRequests()
- 返回:
- the number of requests handled by this handler
since
statsReset() was last called, excluding
active requests - 另请参见:
getResumes()
getRequestsActive
public int getRequestsActive()
- 返回:
- the number of requests currently active.
since
statsReset() was last called.
getRequestsActiveMax
public int getRequestsActiveMax()
- 返回:
- the maximum number of active requests
since
statsReset() was last called.
getRequestTimeMax
public long getRequestTimeMax()
- 返回:
- the maximum time (in milliseconds) of request handling
since
statsReset() was last called.
getRequestTimeTotal
public long getRequestTimeTotal()
- 返回:
- the total time (in milliseconds) of requests handling
since
statsReset() was last called.
getRequestTimeMean
public double getRequestTimeMean()
- 返回:
- the mean time (in milliseconds) of request handling
since
statsReset() was last called. - 另请参见:
getRequestTimeTotal(),
getRequests()
getRequestTimeStdDev
public double getRequestTimeStdDev()
- 返回:
- the standard deviation of time (in milliseconds) of request handling
since
statsReset() was last called. - 另请参见:
getRequestTimeTotal(),
getRequests()
getDispatched
public int getDispatched()
- 返回:
- the number of dispatches seen by this handler
since
statsReset() was last called, excluding
active dispatches
getDispatchedActive
public int getDispatchedActive()
- 返回:
- the number of dispatches currently in this handler
since
statsReset() was last called, including
resumed requests
getDispatchedActiveMax
public int getDispatchedActiveMax()
- 返回:
- the max number of dispatches currently in this handler
since
statsReset() was last called, including
resumed requests
getDispatchedTimeMax
public long getDispatchedTimeMax()
- 返回:
- the maximum time (in milliseconds) of request dispatch
since
statsReset() was last called.
getDispatchedTimeTotal
public long getDispatchedTimeTotal()
- 返回:
- the total time (in milliseconds) of requests handling
since
statsReset() was last called.
getDispatchedTimeMean
public double getDispatchedTimeMean()
- 返回:
- the mean time (in milliseconds) of request handling
since
statsReset() was last called. - 另请参见:
getRequestTimeTotal(),
getRequests()
getDispatchedTimeStdDev
public double getDispatchedTimeStdDev()
- 返回:
- the standard deviation of time (in milliseconds) of request handling
since
statsReset() was last called. - 另请参见:
getRequestTimeTotal(),
getRequests()
getSuspends
public int getSuspends()
- 返回:
- the number of requests handled by this handler
since
statsReset() was last called, including
resumed requests - 另请参见:
getResumes()
getSuspendsActive
public int getSuspendsActive()
- 返回:
- the number of requests currently suspended.
since
statsReset() was last called.
getSuspendsActiveMax
public int getSuspendsActiveMax()
- 返回:
- the maximum number of current suspended requests
since
statsReset() was last called.
getResumes
public int getResumes()
- 返回:
- the number of requests that have been resumed
- 另请参见:
getExpires()
getExpires
public int getExpires()
- 返回:
- the number of requests that expired while suspended.
- 另请参见:
getResumes()
getResponses1xx
public int getResponses1xx()
- 返回:
- the number of responses with a 1xx status returned by this context
since
statsReset() was last called.
getResponses2xx
public int getResponses2xx()
- 返回:
- the number of responses with a 2xx status returned by this context
since
statsReset() was last called.
getResponses3xx
public int getResponses3xx()
- 返回:
- the number of responses with a 3xx status returned by this context
since
statsReset() was last called.
getResponses4xx
public int getResponses4xx()
- 返回:
- the number of responses with a 4xx status returned by this context
since
statsReset() was last called.
getResponses5xx
public int getResponses5xx()
- 返回:
- the number of responses with a 5xx status returned by this context
since
statsReset() was last called.
getStatsOnMs
public long getStatsOnMs()
- 返回:
- the milliseconds since the statistics were started with
statsReset().
getResponsesBytesTotal
public long getResponsesBytesTotal()
- 返回:
- the total bytes of content sent in responses
toStatsHTML
public String toStatsHTML()
Copyright © 2013. All Rights Reserved.