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;
}
Aggregations