net.sf.colossus.webserver
Class RoundtripTimeBookkeeper
java.lang.Object
net.sf.colossus.webserver.RoundtripTimeBookkeeper
public class RoundtripTimeBookkeeper
- extends java.lang.Object
Method Summary |
void |
showLastNEntries(java.io.PrintWriter pw)
|
void |
storeEntry(long when,
long roundtripTime)
Create and store one RTT entry |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
indexCounter
private long indexCounter
LAST_N_TO_KEEP
private final int LAST_N_TO_KEEP
lastNTimes
java.util.LinkedList<RoundtripTimeBookkeeper.RoundtripTimeEntry> lastNTimes
RoundtripTimeBookkeeper
public RoundtripTimeBookkeeper(int howManyLastToKeep)
storeEntry
public void storeEntry(long when,
long roundtripTime)
- Create and store one RTT entry
- Parameters:
requestResponseArriveTime
- When response arrivedroundtripTime
- Actual roundtrip time
showLastNEntries
public void showLastNEntries(java.io.PrintWriter pw)