public class RequestStatistics extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected int |
count |
protected long |
elapsedSum |
protected long |
highestElapsed |
protected long |
lowestElapsed |
| Constructor and Description |
|---|
RequestStatistics() |
| Modifier and Type | Method and Description |
|---|---|
void |
count(long start,
long stop)
Each time a request is processed, this method should be called.
|
long |
getAverageElapsed()
The average time observed
|
int |
getCount()
The number of time this Url was killed.
|
long |
getElapsedSum()
The total time passed to process all the request.
|
long |
getHighestElapsed()
The longest time observed (duration of the lowest request)
|
long |
getLowestElapsed()
The shortest time observed (duration of the fastest request)
|
String |
toString() |
protected int count
protected long elapsedSum
protected long lowestElapsed
protected long highestElapsed
public int getCount()
public long getElapsedSum()
public long getLowestElapsed()
public long getHighestElapsed()
public long getAverageElapsed()
public void count(long start,
long stop)
start - the time (in ms), when the request was queried by the userstop - the time (in ms), the request processing endedIllegalArgumentException - if given times implies that stop time is
not after startCopyright © 2011-2013 CodeLutin. All Rights Reserved.