|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.web.jmx.RequestStatistics
public class RequestStatistics
This pojo gather statistics for a given (not stored) request.
| Field Summary | |
|---|---|
protected int |
count
|
protected long |
elapsedSum
|
protected long |
highestElapsed
|
protected long |
lowestElapsed
|
| Constructor Summary | |
|---|---|
RequestStatistics()
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int count
protected long elapsedSum
protected long lowestElapsed
protected long highestElapsed
| Constructor Detail |
|---|
public RequestStatistics()
| Method Detail |
|---|
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 ended
IllegalArgumentException - if given times implies that stop time is
not after startpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||