@Component public class DownloaderController extends DataBridgeController
MAX_THREADS, MIN_THREADS, s3Service| Constructor and Description |
|---|
DownloaderController() |
| Modifier and Type | Method and Description |
|---|---|
protected DownloaderOutputManifestDto |
createDownloaderOutputManifestDto(BusinessObjectData businessObjectData,
StorageUnit storageUnit,
String s3KeyPrefix)
Creates a downloader output manifest instance from the business object data.
|
void |
performDownload(RegServerAccessParamsDto regServerAccessParamsDto,
File manifestPath,
S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto)
Executes the downloader workflow.
|
adjustIntegerValue, getStorageNameFromManifestpublic void performDownload(RegServerAccessParamsDto regServerAccessParamsDto, File manifestPath, S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto) throws InterruptedException, JAXBException, IOException, URISyntaxException
regServerAccessParamsDto - the DTO for the parameters required to communicate with the herd registration servermanifestPath - the local path to the manifest files3FileTransferRequestParamsDto - the S3 file transfer DTO request parametersInterruptedException - if the upload thread was interrupted.JAXBException - if a JAXB error was encountered.IOException - if an I/O error was encountered.URISyntaxException - if a URI syntax error was encountered.protected DownloaderOutputManifestDto createDownloaderOutputManifestDto(BusinessObjectData businessObjectData, StorageUnit storageUnit, String s3KeyPrefix)
businessObjectData - the business object data that we need to create the manifest forstorageUnit - the S3 storage unit for this business object datas3KeyPrefix - the S3 key prefix for this business object dataCopyright © 2017. All rights reserved.