@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,
NoSuchAlgorithmException,
KeyStoreException,
KeyManagementException
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 interruptedJAXBException - if a JAXB error was encounteredIOException - if an I/O error was encounteredURISyntaxException - if a URI syntax error was encounteredKeyStoreException - if a key store exception occursNoSuchAlgorithmException - if a no such algorithm exception occursKeyManagementException - if key management exceptionprotected 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 © 2021. All rights reserved.