|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.logAnalyzer.LogAnalyzerBatch
This class is the command line executable for Log LAAnalyzer. It is used to analyze the specified log file and to launch the GUI according to command lines options.
Threaded log file analysis
The log file analysis is launch in a new Thread
to allow
progress logging using the following
LALogHandlerListener
events :
LALogHandlerListener.startParsing(LALogHandler)
LALogHandlerListener.stepParsing(LALogHandler)
LALogHandlerListener.endParsing(LALogHandler)
Command line options
java -jar logAnalyzer.jar LogAnalyzerBatch [-gui] [-reportsprefix prefix] commandsfile.xml logfile+
Argument | Description |
---|---|
-gui | Starts the GUI after analyzing and reports rendering processes. |
-reportsprefix prefix | Adds this prefix to each generated report file. |
commandsfile.xml | XML file containing options and commands to execute during parsing and analysis of the log file (see documentation for details). |
logfile(s) | One or more log files to parse and analysis. Each line of the file will
be parsed using the pattern (specified in the XML commands file).
If more than one log file is specified, they are parsed as one big file. |
Content of the XML commands file
This file contains options and commands according to the DTD LogAnalyzeCommands.dtd (see this DTD for details).
Constructor Summary | |
LogAnalyzerBatch()
Default constructor. |
Method Summary | |
void |
addLogAnalyzerListener(LogAnalyzerBatchListener listener)
Adds a listener. |
void |
endParsing(LALogHandler logHandler)
Called by a LALogHandler when the parsing is done. |
void |
fireMessage(java.lang.String message)
Fires a message event. |
void |
firePercent(int percent)
Fires a percent event. |
static StartUpOptions |
getOptions()
Start up options. |
static void |
main(java.lang.String[] args)
Entry point. |
void |
removeLogAnalyzerListener(LogAnalyzerBatchListener listener)
Removes a listener. |
void |
setOptions(StartUpOptions options)
Sets the start up options. |
void |
startParsing(LALogHandler logHandler)
Called by a LALogHandler when the parsing process starts. |
void |
stepParsing(LALogHandler logHandler)
Called by a LALogHandler when the parsing process reaches a step
beyond. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LogAnalyzerBatch()
Method Detail |
public static void main(java.lang.String[] args)
LogAnalyzerBatch
instance.
args
- Command line arguments.public static StartUpOptions getOptions()
public void setOptions(StartUpOptions options)
options
- The options to set.public void startParsing(LALogHandler logHandler)
LALogHandler
when the parsing process starts. Sets
internal properties.
startParsing
in interface LALogHandlerListener
logHandler
- Log handler currently prased.LALogHandlerListener.startParsing(LALogHandler)
public void stepParsing(LALogHandler logHandler)
LALogHandler
when the parsing process reaches a step
beyond. Sets internal properties and show parsing progression in debug
mode.
stepParsing
in interface LALogHandlerListener
logHandler
- Log handler currently parsed.LALogHandlerListener.stepParsing(LALogHandler)
public void endParsing(LALogHandler logHandler)
LALogHandler
when the parsing is done. Sets internal
properties.
endParsing
in interface LALogHandlerListener
logHandler
- Log handler currently parsed.LALogHandlerListener.endParsing(net.logAnalyzer.handlers.LALogHandler)
public void addLogAnalyzerListener(LogAnalyzerBatchListener listener)
listener
- Lister to add.public void removeLogAnalyzerListener(LogAnalyzerBatchListener listener)
listener
- Lister to remove.public void fireMessage(java.lang.String message)
message
- Message for which to fire an event.public void firePercent(int percent)
percent
- Percentages.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |