@Component public class UploaderController extends DataBridgeController
MAX_THREADS, MIN_THREADS, s3Service| Constructor and Description |
|---|
UploaderController() |
| Modifier and Type | Method and Description |
|---|---|
void |
performUpload(RegServerAccessParamsDto regServerAccessParamsDto,
File manifestPath,
S3FileTransferRequestParamsDto params,
Boolean createNewVersion,
Boolean force,
Integer maxRetryAttempts,
Integer retryDelaySecs)
Executes the uploader workflow.
|
adjustIntegerValue, getStorageNameFromManifestpublic void performUpload(RegServerAccessParamsDto regServerAccessParamsDto,
File manifestPath,
S3FileTransferRequestParamsDto params,
Boolean createNewVersion,
Boolean force,
Integer maxRetryAttempts,
Integer retryDelaySecs)
throws InterruptedException,
JAXBException,
IOException,
URISyntaxException,
NoSuchAlgorithmException,
KeyStoreException,
KeyManagementException
regServerAccessParamsDto - the DTO for the parameters required to communicate with the registration servermanifestPath - the local path to the manifest fileparams - the S3 file transfer request parameters being used to pass the following arguments: s3AccessKey the S3 access key
s3SecretKey the S3 secret key localPath the local path to directory containing data files
httpProxyHost the HTTP proxy host httpProxyPort the HTTP proxy port maxThreads the maximum number of
threads to use for file transfer to S3< useRrs specifies whether S3 reduced redundancy storage option will be used when copying to S3
createNewVersion - if not set, only initial version of the business object data is allowed to be createdforce - if set, allows upload to proceed when the latest version of the business object data has UPLOADING status by invalidating that versionmaxRetryAttempts - the maximum number of the business object data registration retry attemptsretryDelaySecs - the delay in seconds between the business object data registration retry attemptsInterruptedException - 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 exceptionCopyright © 2021. All rights reserved.