Java Simon 3.5.0

org.javasimon.javaee.reqreporter
Class StandardRequestReporter

java.lang.Object
  extended by org.javasimon.javaee.reqreporter.DefaultRequestReporter
      extended by org.javasimon.javaee.reqreporter.StandardRequestReporter
All Implemented Interfaces:
RequestReporter

public class StandardRequestReporter
extends DefaultRequestReporter

Reports request to standard output (instead of Manager's message method) and omits less specific Simons from output (for instance JDBC's next).

Author:
Richard "Virgo" Richter

Nested Class Summary
 
Nested classes/interfaces inherited from class org.javasimon.javaee.reqreporter.DefaultRequestReporter
DefaultRequestReporter.StopwatchInfo
 
Constructor Summary
StandardRequestReporter()
           
 
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.
protected  boolean shouldBeAddedStopwatchInfo(DefaultRequestReporter.StopwatchInfo info)
          Decides whether stopwatch info should be included in the report - by default all are included.
 
Methods inherited from class org.javasimon.javaee.reqreporter.DefaultRequestReporter
isSignificantSplit, reportRequest, setSimonServletFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardRequestReporter

public StandardRequestReporter()
Method Detail

reportMessage

protected void reportMessage(String message)
Description copied from class: DefaultRequestReporter
Reports the prepared message through the method Manager.message(String) - can be overridden to emit the message to log/console/etc.

Overrides:
reportMessage in class DefaultRequestReporter
Parameters:
message - prepared message with report

shouldBeAddedStopwatchInfo

protected boolean shouldBeAddedStopwatchInfo(DefaultRequestReporter.StopwatchInfo info)
Description copied from class: DefaultRequestReporter
Decides whether stopwatch info should be included in the report - by default all are included.

Overrides:
shouldBeAddedStopwatchInfo in class DefaultRequestReporter
Parameters:
info - stopwatch info contains list of all splits, max split and total time of splits for the reported request
Returns:
true, if the stopatch info should be reported

Java Simon 3.5.0

Copyright © 2014. All rights reserved.