Package mondrian.recorder
Class ListRecorder
- java.lang.Object
 - 
- mondrian.recorder.AbstractRecorder
 - 
- mondrian.recorder.ListRecorder
 
 
 
- 
- All Implemented Interfaces:
 MessageRecorder
public class ListRecorder extends AbstractRecorder
Implementation ofMessageRecorderthat records each message in aList. The calling code can then access the list and take actions as needed. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classListRecorder.EntryEntry is a Info, Warning or Error message. 
- 
Field Summary
- 
Fields inherited from class mondrian.recorder.AbstractRecorder
DEFAULT_MSG_LIMIT 
 - 
 
- 
Constructor Summary
Constructors Constructor Description ListRecorder() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Resets this MessageRecorder.Iterator<ListRecorder.Entry>getErrorEntries()Iterator<ListRecorder.Entry>getInfoEntries()Iterator<ListRecorder.Entry>getWarnEntries()voidlogErrorMessage(org.apache.logging.log4j.Logger logger)voidlogInfoMessage(org.apache.logging.log4j.Logger logger)voidlogWarningMessage(org.apache.logging.log4j.Logger logger)protected voidrecordMessage(String msg, Object info, mondrian.recorder.AbstractRecorder.MsgType msgType)Handles a message.- 
Methods inherited from class mondrian.recorder.AbstractRecorder
getContext, getErrorCount, getInfoCount, getRunTimeMillis, getStartTimeMillis, getWarningCount, hasErrors, hasInformation, hasWarnings, logMessage, popContextName, pushContextName, reportError, reportError, reportError, reportError, reportInfo, reportInfo, reportWarning, reportWarning, throwRTException 
 - 
 
 - 
 
- 
- 
Method Detail
- 
clear
public void clear()
Description copied from class:AbstractRecorderResets this MessageRecorder.- Specified by:
 clearin interfaceMessageRecorder- Overrides:
 clearin classAbstractRecorder
 
- 
getErrorEntries
public Iterator<ListRecorder.Entry> getErrorEntries()
 
- 
getWarnEntries
public Iterator<ListRecorder.Entry> getWarnEntries()
 
- 
getInfoEntries
public Iterator<ListRecorder.Entry> getInfoEntries()
 
- 
recordMessage
protected void recordMessage(String msg, Object info, mondrian.recorder.AbstractRecorder.MsgType msgType)
Description copied from class:AbstractRecorderHandles a message. Classes implementing this abstract class must provide an implemention of this method; it receives all warning/error messages.- Specified by:
 recordMessagein classAbstractRecorder- Parameters:
 msg- the error or warning message.info- the information Object which might be null.msgType- one of the message type enum values
 
- 
logInfoMessage
public void logInfoMessage(org.apache.logging.log4j.Logger logger)
 
- 
logWarningMessage
public void logWarningMessage(org.apache.logging.log4j.Logger logger)
 
- 
logErrorMessage
public void logErrorMessage(org.apache.logging.log4j.Logger logger)
 
 - 
 
 -