Class Overview
Implementation of the metrics interface.
Summary
[Expand]
Inherited Methods |
From class java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Is called before the object's memory is being reclaimed by the VM.
|
final
Class<? extends Object>
|
getClass()
Returns the unique instance of Class which represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
|
From interface org.apache.http.HttpConnectionMetrics
abstract
Object
|
getMetric(String metricName)
Return the value for the specified metric.
|
abstract
long
|
getReceivedBytesCount()
Returns the number of bytes transferred over the connection,
0 if not available.
|
abstract
long
|
getRequestCount()
Returns the number of requests transferred over the connection,
0 if not available.
|
abstract
long
|
getResponseCount()
Returns the number of responses transferred over the connection,
0 if not available.
|
abstract
long
|
getSentBytesCount()
Returns the number of bytes transferred over the connection,
0 if not available.
|
abstract
void
|
reset()
Resets the counts
|
|
Constants
public
static
final
String
RECEIVED_BYTES_COUNT
Constant Value:
"http.received-bytes-count"
public
static
final
String
REQUEST_COUNT
Constant Value:
"http.request-count"
public
static
final
String
RESPONSE_COUNT
Constant Value:
"http.response-count"
public
static
final
String
SENT_BYTES_COUNT
Constant Value:
"http.sent-bytes-count"
Public Constructors
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
incrementRequestCount
()
public
void
incrementResponseCount
()