| org.apache.http.HttpConnectionMetrics
All known Subclasses: org.apache.http.impl.HttpConnectionMetricsImpl,
HttpConnectionMetrics | public interface HttpConnectionMetrics (Code) | | The point of access to the statistics of an
HttpConnection .
|
Method Summary | |
Object | getMetric(String metricName) Return the value for the specified metric.
Parameters: metricName - the name of the metric to query. | long | getReceivedBytesCount() Returns the number of bytes transferred over the connection,
0 if not available. | long | getRequestCount() Returns the number of requests transferred over the connection,
0 if not available. | long | getResponseCount() Returns the number of responses transferred over the connection,
0 if not available. | long | getSentBytesCount() Returns the number of bytes transferred over the connection,
0 if not available. | void | reset() |
getMetric | Object getMetric(String metricName)(Code) | | Return the value for the specified metric.
Parameters: metricName - the name of the metric to query. the object representing the metric requested,null if the metric cannot not found. |
getReceivedBytesCount | long getReceivedBytesCount()(Code) | | Returns the number of bytes transferred over the connection,
0 if not available.
|
getRequestCount | long getRequestCount()(Code) | | Returns the number of requests transferred over the connection,
0 if not available.
|
getResponseCount | long getResponseCount()(Code) | | Returns the number of responses transferred over the connection,
0 if not available.
|
getSentBytesCount | long getSentBytesCount()(Code) | | Returns the number of bytes transferred over the connection,
0 if not available.
|
reset | void reset()(Code) | | Resets the counts
|
|
|