A file containing an HPCView experiment in XML representation. More...
Public Member Functions | |
File | getFile () |
void | setFile (File file) |
void | parse (InputStream stream, String name, BaseExperiment experiment, boolean need_metrics, IUserData< String, String > userData) throws Exception |
Parses the file and returns the contained experiment subparts. | |
void | parse (File file, BaseExperiment experiment, boolean need_metrics, IUserData< String, String > userData) throws Exception |
Private Attributes | |
File | file |
A file containing an HPCView experiment in XML representation.
Definition at line 42 of file ExperimentFileXML.java.
File edu.rice.cs.hpc.data.experiment.xml.ExperimentFileXML.getFile | ( | ) |
Definition at line 47 of file ExperimentFileXML.java.
References edu.rice.cs.hpc.data.experiment.xml.ExperimentFileXML.file.
Referenced by edu.rice.cs.hpc.data.experiment.BaseExperiment.getXMLExperimentFile().
void edu.rice.cs.hpc.data.experiment.xml.ExperimentFileXML.parse | ( | File | file, | |
BaseExperiment | experiment, | |||
boolean | need_metrics, | |||
IUserData< String, String > | userData | |||
) | throws Exception [virtual] |
Implements edu.rice.cs.hpc.data.experiment.ExperimentFile.
Definition at line 120 of file ExperimentFileXML.java.
References edu.rice.cs.hpc.data.experiment.xml.ExperimentFileXML.file, edu.rice.cs.hpc.data.experiment.xml.Builder.getParseErrorLineNumber(), edu.rice.cs.hpc.data.experiment.xml.Builder.getParseOK(), edu.rice.cs.hpc.data.experiment.xml.Parser.parse(), and edu.rice.cs.hpc.data.experiment.xml.ExperimentFileXML.setFile().
void edu.rice.cs.hpc.data.experiment.xml.ExperimentFileXML.parse | ( | InputStream | stream, | |
String | name, | |||
BaseExperiment | experiment, | |||
boolean | need_metrics, | |||
IUserData< String, String > | userData | |||
) | throws Exception |
Parses the file and returns the contained experiment subparts.
The subparts are returned by adding them to given lists.
This version is able to work with the file not being located on physical disk, but rather a reference to an in-memory stream from a socket (potentially compressed).
Note: The GREP code has been moved to the SpaceTimeDataControllerLocal
because it is only needed on the local version, and that is the last place where the actual file (as opposed to a stream referring to the file) is available.
name | The name of the file. For now, this is hard coded, but it should be obvious from the file chosen in the remote browser UI | |
experiment | Experiment object to own the parsed subparts. | |
userData | I don't know why this is here, since it apparently isn't used. I'm leaving it for maximum compatibility. |
Exception |
Definition at line 86 of file ExperimentFileXML.java.
References edu.rice.cs.hpc.data.experiment.xml.Builder.getParseErrorLineNumber(), edu.rice.cs.hpc.data.experiment.xml.Builder.getParseOK(), edu.rice.cs.hpc.data.experiment.xml.Parser.parse(), and edu.rice.cs.hpc.data.experiment.xml.ExperimentFileXML.setFile().
Referenced by edu.rice.cs.hpc.data.experiment.RemoteDatabaseRepresentation.open(), and edu.rice.cs.hpc.data.experiment.LocalDatabaseRepresentation.open().
void edu.rice.cs.hpc.data.experiment.xml.ExperimentFileXML.setFile | ( | File | file | ) |
Definition at line 52 of file ExperimentFileXML.java.
Referenced by edu.rice.cs.hpc.data.experiment.xml.ExperimentFileXML.parse(), and edu.rice.cs.hpc.data.experiment.Experiment.setXMLExperimentFile().
File edu.rice.cs.hpc.data.experiment.xml.ExperimentFileXML.file [private] |
Definition at line 45 of file ExperimentFileXML.java.
Referenced by edu.rice.cs.hpc.data.experiment.xml.ExperimentFileXML.getFile(), and edu.rice.cs.hpc.data.experiment.xml.ExperimentFileXML.parse().