|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.javasimon.javaee.reqreporter.PlainRequestReporter
public class PlainRequestReporter
Reports the request with split lenght and list of all splits.
Report is sent through Manager.message(String). Following aspects of the class can be overridden:
reportMessage(String),shouldBeAddedSplit(org.javasimon.Split).
| Constructor Summary | |
|---|---|
PlainRequestReporter()
|
|
| Method Summary | |
|---|---|
protected void |
reportMessage(String message)
Reports the prepared message through the method Manager.message(String) - can be overridden
to emit the message to log/console/etc. |
void |
reportRequest(javax.servlet.http.HttpServletRequest request,
Split requestSplit,
List<Split> splits)
Reports request that exceeds the threshold. |
void |
setSimonServletFilter(SimonServletFilter simonServletFilter)
Called by initialization after the instance creation. |
protected boolean |
shouldBeAddedSplit(Split split)
Decides whether split should be included in the report - by default all are included. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PlainRequestReporter()
| Method Detail |
|---|
public void reportRequest(javax.servlet.http.HttpServletRequest request,
Split requestSplit,
List<Split> splits)
RequestReporter
reportRequest in interface RequestReporterrequest - offending HTTP requestrequestSplit - split measuring the offending requestsplits - list of all splits started for this requestprotected void reportMessage(String message)
Manager.message(String) - can be overridden
to emit the message to log/console/etc.
message - prepared message with reportprotected boolean shouldBeAddedSplit(Split split)
split - tested Split
public void setSimonServletFilter(SimonServletFilter simonServletFilter)
RequestReporterManager is needed
(SimonServletFilter.getManager()) and possibly for other scenarios.
setSimonServletFilter in interface RequestReporter
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||