Package net.sf.colossus.webserver
Class RoundtripTimeBookkeeper
- java.lang.Object
-
- net.sf.colossus.webserver.RoundtripTimeBookkeeper
-
public class RoundtripTimeBookkeeper extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
RoundtripTimeBookkeeper.RoundtripTimeEntry
-
Field Summary
Fields Modifier and Type Field Description private long
indexCounter
private int
LAST_N_TO_KEEP
(package private) java.util.LinkedList<RoundtripTimeBookkeeper.RoundtripTimeEntry>
lastNTimes
-
Constructor Summary
Constructors Constructor Description RoundtripTimeBookkeeper(int howManyLastToKeep)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
showLastNEntries(java.io.PrintWriter pw)
void
storeEntry(long when, long roundtripTime)
Create and store one RTT entry
-
-
-
Field Detail
-
indexCounter
private long indexCounter
-
LAST_N_TO_KEEP
private final int LAST_N_TO_KEEP
-
lastNTimes
java.util.LinkedList<RoundtripTimeBookkeeper.RoundtripTimeEntry> lastNTimes
-
-