use of com.synopsys.integration.blackduck.bdio2.Bdio2StreamUploader in project blackduck-common by blackducksoftware.
the class BlackDuckServicesFactory method createIntelligentPersistenceService.
public IntelligentPersistenceService createIntelligentPersistenceService() {
Bdio2StreamUploader bdio2Uploader = new Bdio2StreamUploader(blackDuckApiClient, apiDiscovery, logger, ApiDiscovery.INTELLIGENT_PERSISTENCE_SCANS_PATH, IntelligentPersistenceService.CONTENT_TYPE);
Bdio2FileUploadService bdio2FileUploadService = new Bdio2FileUploadService(blackDuckApiClient, apiDiscovery, logger, new Bdio2ContentExtractor(), bdio2Uploader);
IntelligentPersistenceBatchRunner batchRunner = new IntelligentPersistenceBatchRunner(logger, executorService, bdio2FileUploadService);
return new IntelligentPersistenceService(blackDuckApiClient, apiDiscovery, logger, batchRunner, createCodeLocationCreationService());
}
use of com.synopsys.integration.blackduck.bdio2.Bdio2StreamUploader in project blackduck-common by blackducksoftware.
the class Bdio2UploadJobTest method getUploadJob.
private Bdio2UploadJob getUploadJob(Bdio2StreamUploader bdio2StreamUploader) {
BdioFileContent header = new BdioFileContent("bdio-header.jsonld", "");
BdioFileContent entry = new BdioFileContent("bdio-entry-00.jsonld", "");
return new Bdio2UploadJob(bdio2StreamUploader, header, Collections.singletonList(entry), null, 2);
}
Aggregations