public class PerformanceLogger extends Object
Constructor and Description |
---|
PerformanceLogger(String type)
Construct a Performance logger with the specified String "type"
|
Modifier and Type | Method and Description |
---|---|
static void |
noteElapsed(String message,
long elapsed) |
static void |
noteElapsed(String message,
long elapsed,
String note) |
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.
|
public PerformanceLogger(String type)
type
- the String type to report with the logged outputpublic void queried()
public void retrieved()
public void rendered()
public void write(String info)
info
- String suffix to append to the log messagepublic static void noteElapsed(String message, long elapsed)
Copyright © 2005–2015 IIPC. All rights reserved.