|
|||||||||||
| 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.OnDemandLogHandler
This log handler parses messages on demand. It must be used to handle large log files with small memory needs.
| Constructor Summary | |
OnDemandLogHandler(FilesSetReader input,
java.lang.String pattern)
|
|
| Method Summary | |
int |
getSize()
Returns the number of messages read. |
protected void |
initParsing()
Modification to the inherited behavior. |
protected LAMessage |
loadMessage(int index)
Modification to the inherited behavior. |
protected void |
releaseParsing()
Returns to the start of the files set. |
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, removeLogHandlerListener, run, setAnalyzers, setMaxRecords |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OnDemandLogHandler(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()
protected void releaseParsing()
throws java.io.IOException
releaseParsing in class AbstractLogHandlerjava.io.IOException - If an error occures.AbstractLogHandler.releaseParsing()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||