Android
org.apache.http
public interface

org.apache.http.HttpConnectionMetrics

org.apache.http.HttpConnectionMetrics

The point of access to the statistics of an HttpConnection.

Summary

Public Methods

          Object  getMetric(String metricName)
Return the value for the specified metric.
          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()
Resets the counts

Details

Public Methods

public Object getMetric(String metricName)

Return the value for the specified metric.

Parameters

metricName the name of the metric to query.

Returns

  • the object representing the metric requested, null if the metric cannot not found.

public long getReceivedBytesCount()

Returns the number of bytes transferred over the connection, 0 if not available.

public long getRequestCount()

Returns the number of requests transferred over the connection, 0 if not available.

public long getResponseCount()

Returns the number of responses transferred over the connection, 0 if not available.

public long getSentBytesCount()

Returns the number of bytes transferred over the connection, 0 if not available.

public void reset()

Resets the counts
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56