Search in sources :

Example 1 with CodeLocationWaitData

use of com.synopsys.integration.detect.workflow.blackduck.codelocation.CodeLocationWaitData in project synopsys-detect by blackducksoftware.

the class IntelligentModeStepRunner method calculateCodeLocations.

public CodeLocationResults calculateCodeLocations(CodeLocationAccumulator codeLocationAccumulator) throws OperationException {
    // this is waiting....
    logger.info(ReportConstants.RUN_SEPARATOR);
    Set<String> allCodeLocationNames = new HashSet<>(codeLocationAccumulator.getNonWaitableCodeLocations());
    CodeLocationWaitData waitData = operationFactory.calulcateCodeLocationWaitData(codeLocationAccumulator.getWaitableCodeLocations());
    allCodeLocationNames.addAll(waitData.getCodeLocationNames());
    operationFactory.publishCodeLocationNames(allCodeLocationNames);
    return new CodeLocationResults(allCodeLocationNames, waitData);
}
Also used : CodeLocationWaitData(com.synopsys.integration.detect.workflow.blackduck.codelocation.CodeLocationWaitData) CodeLocationResults(com.synopsys.integration.detect.workflow.blackduck.codelocation.CodeLocationResults) HashSet(java.util.HashSet)

Aggregations

CodeLocationResults (com.synopsys.integration.detect.workflow.blackduck.codelocation.CodeLocationResults)1 CodeLocationWaitData (com.synopsys.integration.detect.workflow.blackduck.codelocation.CodeLocationWaitData)1 HashSet (java.util.HashSet)1