|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
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 LALogHandler
getSize
in class AbstractLogHandler
LALogHandler.getSize()
protected LAMessage loadMessage(int index)
loadMessage
in class AbstractLogHandler
index
- Index of the messageLabel to load.
AbstractLogHandler.loadMessage(int)
protected void saveMessage(LAMessage message, long pointer)
saveMessage
in class AbstractLogHandler
message
- 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 AbstractLogHandler
java.io.IOException
- If an error occures.AbstractLogHandler.initParsing()
protected void releaseParsing() throws java.io.IOException
releaseParsing
in class AbstractLogHandler
java.io.IOException
- If an error occures.AbstractLogHandler.releaseParsing()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |