HiRISE

HiRISE.HiReport.system
Class ConductorLogStats

java.lang.Object
  extended by HiRISE.HiReport.system.ConductorLogStats

public class ConductorLogStats
extends Object

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

ConductorLogStats

public ConductorLogStats()
Method Detail

parse

public void parse(File log)
           throws FileNotFoundException,
                  ParseException
Parses the date of execution, start time, and end time from a single log file.

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.

Parameters:
log - The log file to parse.
Throws:
FileNotFoundException - Thrown if the file isn't found on the system or is a directory.
ParseException - Thrown if there are issues parsing the file.


main

public static void main(String[] args)
Main program execution.

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.

Parameters:
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.


HiRISE

Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona