|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.logAnalyzer.handlers.EmptyLogHandler
| Constructor Summary | |
EmptyLogHandler()
Creates a new empty log handler. |
|
| Method Summary | |
void |
addLogHandlerListener(LALogHandlerListener listener)
Adds a listener. |
void |
fireEndParsing()
Fires an end parsing event. |
void |
fireStartParsing()
Fires a start parsing event. |
LAAnalyzer[] |
getAnalyzers()
Returns log analyzers added to the handler with setAnalyzers(LAAnalyzer[]). |
LAConverter |
getConverter(int index)
Returns the converter at the specified index. |
LAConverter |
getConverter(java.lang.String literal)
Returns the converter identified by the specified literal (for example, "%m" generally returns the messageLabel converter). |
int |
getConverterIndex(java.lang.String literal)
Returns the index of the identified by the specified literal. |
LAConverter[] |
getConverters()
Returns pattern converters. |
java.lang.Exception |
getLastException()
Returns the last exception thrown by the parsing process. |
int |
getMaxRecords()
Returns the number of records to parse; 0 for no limitation. |
LAMessage |
getMessage(int index)
Returns the messageLabel at the specified position. |
LAConverter |
getMessageConverter()
Returns the current messageLabel converter used to extend messageLabel text with unparsed lines. |
LAMessage[] |
getMessages(int start,
int end)
Returns the messages between specified positions. |
int |
getPercentDone()
Returns the done percentage of the parsed file. |
int |
getSize()
Returns the real number of messages in the log, not only in cache in case of a load on demand parsed log. |
boolean |
isParsing()
Returns true if the handler is currently parsing the log. |
void |
parse()
Do nothing expected sending LALogHandlerListener.startParsing(LALogHandler) and
LALogHandlerListener.endParsing(LALogHandler) events. |
void |
removeLogHandlerListener(LALogHandlerListener listener)
Removes a listener. |
void |
run()
|
void |
setAnalyzers(LAAnalyzer[] newAnalyzers)
Adds new analyzers to the log handler. |
void |
setMaxRecords(int maxRecords)
Number of records to parse; 0 for no limitation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EmptyLogHandler()
| Method Detail |
public void addLogHandlerListener(LALogHandlerListener listener)
LALogHandler
addLogHandlerListener in interface LALogHandlerlistener - Lister to add.public void fireEndParsing()
LALogHandler
fireEndParsing in interface LALogHandlerpublic void fireStartParsing()
LALogHandler
fireStartParsing in interface LALogHandlerpublic LAAnalyzer[] getAnalyzers()
LALogHandlerLALogHandler.setAnalyzers(LAAnalyzer[]).
getAnalyzers in interface LALogHandlerpublic LAConverter getConverter(int index)
LALogHandler
getConverter in interface LALogHandlerindex - Converter index.
public LAConverter getConverter(java.lang.String literal)
throws UnknownOrLiteralConverterException
LALogHandler
getConverter in interface LALogHandlerliteral - Converter literal as %m" or %"p" or "%H{CLIENTIP}".
UnknownOrLiteralConverterException - If the literal does not identify a non literal column.
public int getConverterIndex(java.lang.String literal)
throws UnknownOrLiteralConverterException
LALogHandler
getConverterIndex in interface LALogHandlerliteral - Converter literal as %m" or %"p" or "%H{CLIENTIP}".
UnknownOrLiteralConverterException - If the literal does not identify a non literal column.public LAConverter[] getConverters()
LALogHandler
getConverters in interface LALogHandlerpublic java.lang.Exception getLastException()
LALogHandler
getLastException in interface LALogHandlerpublic int getMaxRecords()
LALogHandler
getMaxRecords in interface LALogHandlerpublic LAMessage getMessage(int index)
LALogHandler
getMessage in interface LALogHandlerindex - Physical index of the messageLabel in the log file.
public LAConverter getMessageConverter()
LALogHandler
getMessageConverter in interface LALogHandlerLAMessage.extendsMessage(String)
public LAMessage[] getMessages(int start,
int end)
LALogHandlerLALogHandler.getMessage(int)to read messageLabel from the log file.
getMessages in interface LALogHandlerstart - start physicial index (included in the result).end - end physical index (included in the result).
public int getPercentDone()
LALogHandler
getPercentDone in interface LALogHandlerpublic int getSize()
LALogHandler
getSize in interface LALogHandlerpublic boolean isParsing()
LALogHandler
isParsing in interface LALogHandler
public void parse()
throws ParsingException
LALogHandlerListener.startParsing(LALogHandler) and
LALogHandlerListener.endParsing(LALogHandler) events.
parse in interface LALogHandlerParsingException - If can't parse messageLabel.LALogHandler.parse()public void removeLogHandlerListener(LALogHandlerListener listener)
LALogHandler
removeLogHandlerListener in interface LALogHandlerlistener - Lister to remove.public void setAnalyzers(LAAnalyzer[] newAnalyzers)
LALogHandler
setAnalyzers in interface LALogHandlernewAnalyzers - Analyzers to add.public void setMaxRecords(int maxRecords)
LALogHandler
setMaxRecords in interface LALogHandlermaxRecords - Number of records.public void run()
run in interface java.lang.Runnable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||