|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.logAnalyzer.handlers.AbstractLogHandler
net.logAnalyzer.handlers.MemoryLogHandler
This log handler saves messageLabel in memory. You must not use it for large log files.
| Field Summary | |
static int |
MAXSIZE_RECOMMENDED
Maximum log file size recommended to use a MemoryLogHangler. |
| Constructor Summary | |
MemoryLogHandler(FilesSetReader input,
java.lang.String pattern)
|
|
| Method Summary | |
int |
getSize()
Modification to the inherited behavior. |
protected void |
initParsing()
Modification to the inherited behavior. |
protected LAMessage |
loadMessage(int index)
Modification to the inherited behavior. |
protected void |
saveMessage(LAMessage message,
long pointer)
Modification to the inherited behavior. |
| Methods inherited from class net.logAnalyzer.handlers.AbstractLogHandler |
addLogHandlerListener, fireEndParsing, fireStartParsing, fireStepParsing, getAnalyzers, getConverter, getConverter, getConverterIndex, getConverters, getFileLength, getFilePointer, getLastException, getMaxRecords, getMessage, getMessageConverter, getMessages, getPercentDone, getReader, isParsing, parse, parseMessage, readNextLine, releaseParsing, removeLogHandlerListener, run, setAnalyzers, setMaxRecords |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int MAXSIZE_RECOMMENDED
OnDemandLogHandler for better performances and to avoid
OutOfMemoryError.
| Constructor Detail |
public MemoryLogHandler(FilesSetReader input,
java.lang.String pattern)
throws java.io.FileNotFoundException,
NoConverterException
input - pattern -
java.io.FileNotFoundException
NoConverterException| Method Detail |
public int getSize()
getSize in interface LALogHandlergetSize in class AbstractLogHandlerLALogHandler.getSize()protected LAMessage loadMessage(int index)
loadMessage in class AbstractLogHandlerindex - Index of the messageLabel to load.
AbstractLogHandler.loadMessage(int)
protected void saveMessage(LAMessage message,
long pointer)
saveMessage in class AbstractLogHandlermessage - Parsed messageLabel.pointer - File pointer to the start of the messageLabel.AbstractLogHandler.saveMessage(LAMessage, long)
protected void initParsing()
throws java.io.IOException
initParsing in class AbstractLogHandlerjava.io.IOException - If an error occures.AbstractLogHandler.initParsing()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||