mondrian.recorder
Class PrintStreamRecorder

java.lang.Object
  extended by mondrian.recorder.AbstractRecorder
      extended by mondrian.recorder.PrintStreamRecorder
All Implemented Interfaces:
MessageRecorder

public class PrintStreamRecorder
extends AbstractRecorder

Implementation of MessageRecorder simply writes messages to PrintStreams.

 

Nested Class Summary
 
Nested classes/interfaces inherited from class mondrian.recorder.AbstractRecorder
AbstractRecorder.MsgType
 
Field Summary
 
Fields inherited from class mondrian.recorder.AbstractRecorder
DEFAULT_MSG_LIMIT
 
Constructor Summary
PrintStreamRecorder()
           
PrintStreamRecorder(PrintStream out, PrintStream err)
           
 
Method Summary
protected  void recordMessage(String msg, Object info, AbstractRecorder.MsgType msgType)
          Handles a message.
 
Methods inherited from class mondrian.recorder.AbstractRecorder
clear, getContext, getErrorCount, getInfoCount, getRunTimeMillis, getStartTimeMillis, getWarningCount, hasErrors, hasInformation, hasWarnings, logMessage, popContextName, pushContextName, reportError, reportError, reportError, reportError, reportInfo, reportInfo, reportWarning, reportWarning, throwRTException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintStreamRecorder

public PrintStreamRecorder()

PrintStreamRecorder

public PrintStreamRecorder(PrintStream out,
                           PrintStream err)
Method Detail

recordMessage

protected void recordMessage(String msg,
                             Object info,
                             AbstractRecorder.MsgType msgType)
Description copied from class: AbstractRecorder
Handles a message. Classes implementing this abstract class must provide an implemention of this method; it receives all warning/error messages.

Specified by:
recordMessage in class AbstractRecorder
Parameters:
msg - the error or warning message.
info - the information Object which might be null.
msgType - one of the message type enum values

SourceForge.net_Logo