use of de.dagere.peass.measurement.rca.CausePersistenceManager in project peass by DaGeRe.
the class RCALevelContinueStarter method call.
@Override
public Void call() throws Exception {
final CauseSearchFolders folders = new CauseSearchFolders(projectFolder);
final File resultFile = getResultFile(folders);
final File resultFileFull = getFullResultFile(folders);
if (resultFile != null && resultFileFull != null) {
final CauseSearchData data = Constants.OBJECTMAPPER.readValue(resultFile, CauseSearchData.class);
final CauseSearchData dataFull = Constants.OBJECTMAPPER.readValue(resultFileFull, CauseSearchData.class);
final CauseSearchFolders alternateFolders = createAlternateFolders(folders);
final BothTreeReader reader = new BothTreeReader(data.getCauseConfig(), data.getMeasurementConfig(), folders, new EnvironmentVariables());
reader.readCachedTrees();
CausePersistenceManager persistenceManager = new CausePersistenceManager(data, dataFull, alternateFolders);
EnvironmentVariables emptyEnv = new EnvironmentVariables();
final CauseTester measurer = new CauseTester(alternateFolders, data.getMeasurementConfig(), data.getCauseConfig(), emptyEnv);
final LevelCauseSearcher tester = new LevelCauseSearcher(measurer, persistenceManager, emptyEnv);
final List<CallTreeNode> currentVersionNodeList = new LinkedList<>();
final List<CallTreeNode> currentPredecessorNodeList = new LinkedList<>();
new LevelManager(currentVersionNodeList, currentPredecessorNodeList, reader).goToLastMeasuredLevel(data.getNodes());
tester.isLevelDifferent(currentPredecessorNodeList, currentVersionNodeList);
}
return null;
}
Aggregations