org.archive.wayback.webapp
Class PerformanceLogger

java.lang.Object
  extended by org.archive.wayback.webapp.PerformanceLogger

public class PerformanceLogger
extends Object

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

Author:
brad

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

PerformanceLogger

public PerformanceLogger(String type)
Construct a Performance logger with the specified String "type"

Parameters:
type - the String type to report with the logged output
Method Detail

queried

public void queried()
record the time when the query associated with this request completed


retrieved

public void retrieved()
record the time when the retrieval of a Resource required for this request completed, implies a Replay request...


rendered

public 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.


write

public 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.

Parameters:
info - String suffix to append to the log message


Copyright © 2005-2011 Internet Archive. All Rights Reserved.