Search in sources :

Example 1 with RunCommandWriterSlurmRCA

use of de.dagere.peass.measurement.utils.RunCommandWriterSlurmRCA in project peass by DaGeRe.

the class GetChanges method createReader.

private ChangeReader createReader(final ResultsFolders resultsFolders, final SelectedTests selectedTests) throws FileNotFoundException {
    RunCommandWriterRCA runCommandWriter = null;
    RunCommandWriterSlurmRCA runCommandWriterSlurm = null;
    if (selectedTests.getUrl() != null && !selectedTests.getUrl().isEmpty()) {
        final PrintStream runCommandPrinter = new PrintStream(new File(resultsFolders.getStatisticsFile().getParentFile(), "run-rca-" + selectedTests.getName() + ".sh"));
        runCommandWriter = new RunCommandWriterRCA(runCommandPrinter, "default", selectedTests);
        final PrintStream runCommandPrinterRCA = new PrintStream(new File(resultsFolders.getStatisticsFile().getParentFile(), "run-rca-slurm-" + selectedTests.getName() + ".sh"));
        runCommandWriterSlurm = new RunCommandWriterSlurmRCA(runCommandPrinterRCA, "default", selectedTests);
    }
    final ChangeReader reader = new ChangeReader(resultsFolders, runCommandWriter, runCommandWriterSlurm, selectedTests);
    reader.setConfig(statisticConfigMixin.getStasticsConfig());
    return reader;
}
Also used : PrintStream(java.io.PrintStream) RunCommandWriterSlurmRCA(de.dagere.peass.measurement.utils.RunCommandWriterSlurmRCA) ChangeReader(de.dagere.peass.analysis.changes.ChangeReader) RunCommandWriterRCA(de.dagere.peass.measurement.utils.RunCommandWriterRCA) File(java.io.File)

Aggregations

ChangeReader (de.dagere.peass.analysis.changes.ChangeReader)1 RunCommandWriterRCA (de.dagere.peass.measurement.utils.RunCommandWriterRCA)1 RunCommandWriterSlurmRCA (de.dagere.peass.measurement.utils.RunCommandWriterSlurmRCA)1 File (java.io.File)1 PrintStream (java.io.PrintStream)1