|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object HiRISE.HiReport.system.ConductorLogStats
public class ConductorLogStats
This class takes pipeline log file names as input and attempts to find and parse run times from them into a scatter plot.
The log file names are read off of System.in. The main method looks for a
pipeline name and a directory path name (respectively) in its args parameter.
See the main
method for more information.
This utility will output a .png file that contains the scatter plot and a .rpt file that contains the data used to make the plot. The .rpt file will be used in future executions of this utility to reduce the amount of time it takes to parse the log files.
Constructor Summary | |
---|---|
ConductorLogStats()
|
Method Summary | |
---|---|
static void |
main(String[] args)
Main program execution. |
void |
parse(File log)
Parses the date of execution, start time, and end time from a single log file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConductorLogStats()
Method Detail |
---|
public void parse(File log) throws FileNotFoundException, ParseException
If successful, this method will insert a new entry into the
runtimes
storage class with the date in milliseconds
(x-axis) and the run time in minutes (y-axis).
If the last modified time of the log file is before the time that this utility is running then the log file will be skipped.
log
- The log file to parse.
FileNotFoundException
- Thrown if the file isn't found on the system or is a
directory.
ParseException
- Thrown if there are issues parsing the file.
public static void main(String[] args)
Reads in the previous .rpt file if one exists. Parses each file given to it on System.in. Writes out a .png containing a scatter plot of all the collected data. Writes out the collected data and execution start time for this utility to a .rpt file.
args
- The command line arguments passed to this utility. The first
argument is the pipeline name, which is also used as the .rpt
and .png filename. The second argument is the directory in
which to find/store the files.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |