FileDocCategorySizeDatePackage
HttpConnectionMetrics.javaAPI DocAndroid 1.5 API2542Wed May 06 22:41:10 BST 2009org.apache.http

HttpConnectionMetrics

public interface HttpConnectionMetrics
The point of access to the statistics of an {@link HttpConnection}.

Fields Summary
Constructors Summary
Methods Summary
public java.lang.ObjectgetMetric(java.lang.String metricName)
Return the value for the specified metric.

param
metricName the name of the metric to query.
return
the object representing the metric requested, null if the metric cannot not found.

public longgetReceivedBytesCount()
Returns the number of bytes transferred over the connection, 0 if not available.

public longgetRequestCount()
Returns the number of requests transferred over the connection, 0 if not available.

public longgetResponseCount()
Returns the number of responses transferred over the connection, 0 if not available.

public longgetSentBytesCount()
Returns the number of bytes transferred over the connection, 0 if not available.

public voidreset()
Resets the counts