|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.archive.wayback.webapp.PerformanceLogger
public class PerformanceLogger
Brutally simple, barely functional class to allow simple recording of millisecond level timing within a particular request, enabling rough logging of the time spent in various parts of the handling of a WaybackRequest
| Constructor Summary | |
|---|---|
PerformanceLogger(String type)
Construct a Performance logger with the specified String "type" |
|
| Method Summary | |
|---|---|
void |
queried()
record the time when the query associated with this request completed |
void |
rendered()
record the time when the replayed resource, or the query results were returned to the client, implies the bulk of the request processing is complete. |
void |
retrieved()
record the time when the retrieval of a Resource required for this request completed, implies a Replay request... |
void |
write(String info)
Produce a debug message to this classes logger, computing the time taken to query the index, retrieve the resource (if a replay request) and render the results to the client. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PerformanceLogger(String type)
type - the String type to report with the logged output| Method Detail |
|---|
public void queried()
public void retrieved()
public void rendered()
public void write(String info)
info - String suffix to append to the log message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||