Top Constructors Methods
org.mortbay.jetty.handler

public abstract Class AbstractStatisticsHandler

extends HandlerWrapper
Class Inheritance
Known Direct Subclasses
org.mortbay.jetty.handler.StatisticsHandler

Version
$Revision: 5236 $ $Date: 2009-06-17 07:36:08 +1000 (Wed, 17 Jun 2009) $

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
public abstract int

Returns:

the number of requests handled by this handler since statsReset() was last called.
getRequests
()

public abstract int

Returns:

the number of requests currently active. since statsReset() was last called.
getRequestsActive
()

public abstract int

Returns:

the maximum number of active requests since statsReset() was last called.
getRequestsActiveMax
()

public abstract long

Returns:

the average time (in milliseconds) of request handling since statsReset() was last called.
getRequestTimeAverage
()

public abstract long

Returns:

the maximum time (in milliseconds) of request handling since statsReset() was last called.
getRequestTimeMax
()

public abstract long

Returns:

the minimum time (in milliseconds) of request handling since statsReset() was last called.
getRequestTimeMin
()

public abstract long

Returns:

the total time (in milliseconds) of requests handling since statsReset() was last called.
getRequestTimeTotal
()

public abstract int

Returns:

the number of responses with a 1xx status returned by this context since statsReset() was last called.
getResponses1xx
()

public abstract int

Returns:

the number of responses with a 2xx status returned by this context since statsReset() was last called.
getResponses2xx
()

public abstract int

Returns:

the number of responses with a 3xx status returned by this context since statsReset() was last called.
getResponses3xx
()

public abstract int

Returns:

the number of responses with a 4xx status returned by this context since statsReset() was last called.
getResponses4xx
()

public abstract int

Returns:

the number of responses with a 5xx status returned by this context since statsReset() was last called.
getResponses5xx
()

public abstract long

Returns:

the milliseconds since the statistics were started with statsReset().
getStatsOnMs
()

public abstract void
statsReset()

Resets the current request statistics.

Inherited from org.mortbay.jetty.handler.HandlerWrapper:
addHandlerdoStopexpandChildrengetHandlerhandleremoveHandlersetHandlersetServer

Constructor Detail

AbstractStatisticsHandlerback to summary
public AbstractStatisticsHandler()

Method Detail

doStartback to summary
protected void doStart() throws Exception

Overrides org.mortbay.jetty.handler.HandlerWrapper.doStart.

getRequestsback to summary
public abstract int getRequests()
Returns:int

the number of requests handled by this handler since statsReset() was last called.

getRequestsActiveback to summary
public abstract int getRequestsActive()
Returns:int

the number of requests currently active. since statsReset() was last called.

getRequestsActiveMaxback to summary
public abstract int getRequestsActiveMax()
Returns:int

the maximum number of active requests since statsReset() was last called.

getRequestTimeAverageback to summary
public abstract long getRequestTimeAverage()
Returns:long

the average time (in milliseconds) of request handling since statsReset() was last called.

See Also
getRequestTimeTotal(), getRequests()
getRequestTimeMaxback to summary
public abstract long getRequestTimeMax()
Returns:long

the maximum time (in milliseconds) of request handling since statsReset() was last called.

getRequestTimeMinback to summary
public abstract long getRequestTimeMin()
Returns:long

the minimum time (in milliseconds) of request handling since statsReset() was last called.

getRequestTimeTotalback to summary
public abstract long getRequestTimeTotal()
Returns:long

the total time (in milliseconds) of requests handling since statsReset() was last called.

getResponses1xxback to summary
public abstract int getResponses1xx()
Returns:int

the number of responses with a 1xx status returned by this context since statsReset() was last called.

getResponses2xxback to summary
public abstract int getResponses2xx()
Returns:int

the number of responses with a 2xx status returned by this context since statsReset() was last called.

getResponses3xxback to summary
public abstract int getResponses3xx()
Returns:int

the number of responses with a 3xx status returned by this context since statsReset() was last called.

getResponses4xxback to summary
public abstract int getResponses4xx()
Returns:int

the number of responses with a 4xx status returned by this context since statsReset() was last called.

getResponses5xxback to summary
public abstract int getResponses5xx()
Returns:int

the number of responses with a 5xx status returned by this context since statsReset() was last called.

getStatsOnMsback to summary
public abstract long getStatsOnMs()
Returns:long

the milliseconds since the statistics were started with statsReset().

statsResetback to summary
public abstract void statsReset()

Resets the current request statistics.