Search in sources :

Example 1 with DetectRapidScanWaitJob

use of com.synopsys.integration.detect.workflow.blackduck.developer.blackduck.DetectRapidScanWaitJob in project synopsys-detect by blackducksoftware.

the class RapidModeWaitOperation method waitForScans.

public List<DeveloperScanComponentResultView> waitForScans(List<HttpUrl> uploadedScans, long timeoutInSeconds, int waitIntervalInSeconds) throws IntegrationException, InterruptedException {
    ResilientJobConfig waitJobConfig = new ResilientJobConfig(new Slf4jIntLogger(logger), timeoutInSeconds, System.currentTimeMillis(), waitIntervalInSeconds);
    DetectRapidScanWaitJob waitJob = new DetectRapidScanWaitJob(blackDuckApiClient, uploadedScans);
    ResilientJobExecutor jobExecutor = new ResilientJobExecutor(waitJobConfig);
    return jobExecutor.executeJob(waitJob);
}
Also used : DetectRapidScanWaitJob(com.synopsys.integration.detect.workflow.blackduck.developer.blackduck.DetectRapidScanWaitJob) Slf4jIntLogger(com.synopsys.integration.log.Slf4jIntLogger) ResilientJobExecutor(com.synopsys.integration.wait.ResilientJobExecutor) ResilientJobConfig(com.synopsys.integration.wait.ResilientJobConfig)

Aggregations

DetectRapidScanWaitJob (com.synopsys.integration.detect.workflow.blackduck.developer.blackduck.DetectRapidScanWaitJob)1 Slf4jIntLogger (com.synopsys.integration.log.Slf4jIntLogger)1 ResilientJobConfig (com.synopsys.integration.wait.ResilientJobConfig)1 ResilientJobExecutor (com.synopsys.integration.wait.ResilientJobExecutor)1