| java.lang.Object org.griphyn.cPlanner.visualize.spaceusage.Ploticus
Ploticus | public class Ploticus implements Plot(Code) | | An implementation that plots in the Ploticus format.
author: Karan Vahi version: $Revision: 50 $ |
Constructor Summary | |
public | Ploticus() The default constructor. |
Method Summary | |
protected String | constructEntry(String job, float time, float clnup_size, float no_clnup_size) Returns an entry that needs to be plotted in the graph. | public void | generateScriptFile(String name, String dataFile, String yUnits, float maxTime, float maxSpace) Generates the script file required to give as input to ploticus. | protected String | getFilename(String site, String suffix) Returns the filename of the ploticus file to be generated.
Parameters: site - the site handle. Parameters: suffix - the suffix to be applied to the file. | public void | initialize(String directory, String basename, boolean useStatInfo) Initializer method. | public List | plot(SpaceUsage su, char unit, String timeUnits) Plot out the space usage. |
DEFAULT_TIMING_UNITS | final public static String DEFAULT_TIMING_UNITS(Code) | | The default timing units.
|
EMPTY_DIRECTORY_SIZE | final public static String EMPTY_DIRECTORY_SIZE(Code) | | The size of an empty directory as reported by du -s
|
HOURS_TIMING_UNITS | final public static String HOURS_TIMING_UNITS(Code) | | The minutes unit for the x axis.
|
MINUTES_TIMING_UNITS | final public static String MINUTES_TIMING_UNITS(Code) | | The minutes unit for the x axis.
|
Ploticus | public Ploticus()(Code) | | The default constructor.
|
constructEntry | protected String constructEntry(String job, float time, float clnup_size, float no_clnup_size)(Code) | | Returns an entry that needs to be plotted in the graph.
Parameters: jobname - the name of the associated job. Parameters: time - the time Parameters: clnup_size - the size with cleanup Parameters: no_clnup_size - the size without cleanup the entry to be logged |
generateScriptFile | public void generateScriptFile(String name, String dataFile, String yUnits, float maxTime, float maxSpace) throws IOException(Code) | | Generates the script file required to give as input to ploticus.
Parameters: name - the path to the script file. Parameters: dataFile - the path to corresponding data file. Parameters: yUnits - the units for the space value. Parameters: maxTime - the time in seconds. Parameters: maxSpace - the maximum space. |
getFilename | protected String getFilename(String site, String suffix)(Code) | | Returns the filename of the ploticus file to be generated.
Parameters: site - the site handle. Parameters: suffix - the suffix to be applied to the file. the path to the file. |
initialize | public void initialize(String directory, String basename, boolean useStatInfo)(Code) | | Initializer method.
Parameters: directory - the directory where the plots need to be generated. Parameters: basename - the basename for the files that are generated. Parameters: useStatInfo - boolean indicating whether to use stat info or not. |
plot | public List plot(SpaceUsage su, char unit, String timeUnits) throws IOException(Code) | | Plot out the space usage. Writes out a Ploticus data file.
Parameters: su - the SpaceUsage. Parameters: unit - the unit in which we need to plot. (K,M,G) Parameters: timeUnits - the time unit. List of file pathnames for the files that are written out. exception: IOException - in case of unable to write to the file. |
|
|