|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
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 LALogHandler
listener
- Lister to add.public void fireEndParsing()
LALogHandler
fireEndParsing
in interface LALogHandler
public void fireStartParsing()
LALogHandler
fireStartParsing
in interface LALogHandler
public LAAnalyzer[] getAnalyzers()
LALogHandler
LALogHandler.setAnalyzers(LAAnalyzer[])
.
getAnalyzers
in interface LALogHandler
public LAConverter getConverter(int index)
LALogHandler
getConverter
in interface LALogHandler
index
- Converter index.
public LAConverter getConverter(java.lang.String literal) throws UnknownOrLiteralConverterException
LALogHandler
getConverter
in interface LALogHandler
literal
- 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 LALogHandler
literal
- 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 LALogHandler
public java.lang.Exception getLastException()
LALogHandler
getLastException
in interface LALogHandler
public int getMaxRecords()
LALogHandler
getMaxRecords
in interface LALogHandler
public LAMessage getMessage(int index)
LALogHandler
getMessage
in interface LALogHandler
index
- Physical index of the messageLabel in the log file.
public LAConverter getMessageConverter()
LALogHandler
getMessageConverter
in interface LALogHandler
LAMessage.extendsMessage(String)
public LAMessage[] getMessages(int start, int end)
LALogHandler
LALogHandler.getMessage(int)
to read messageLabel from the log file.
getMessages
in interface LALogHandler
start
- start physicial index (included in the result).end
- end physical index (included in the result).
public int getPercentDone()
LALogHandler
getPercentDone
in interface LALogHandler
public int getSize()
LALogHandler
getSize
in interface LALogHandler
public boolean isParsing()
LALogHandler
isParsing
in interface LALogHandler
public void parse() throws ParsingException
LALogHandlerListener.startParsing(LALogHandler)
and
LALogHandlerListener.endParsing(LALogHandler)
events.
parse
in interface LALogHandler
ParsingException
- If can't parse messageLabel.LALogHandler.parse()
public void removeLogHandlerListener(LALogHandlerListener listener)
LALogHandler
removeLogHandlerListener
in interface LALogHandler
listener
- Lister to remove.public void setAnalyzers(LAAnalyzer[] newAnalyzers)
LALogHandler
setAnalyzers
in interface LALogHandler
newAnalyzers
- Analyzers to add.public void setMaxRecords(int maxRecords)
LALogHandler
setMaxRecords
in interface LALogHandler
maxRecords
- Number of records.public void run()
run
in interface java.lang.Runnable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |