Package de.dlr.proseo.storagemgr.s3
Class S3AtomicFileListGetter
java.lang.Object
de.dlr.proseo.storagemgr.s3.S3AtomicFileListGetter
- All Implemented Interfaces:
AtomicCommand<List<String>>
S3 Atomic File Getter
- Author:
- Denys Chaykovskiy
-
Constructor Summary
ConstructorsConstructorDescriptionS3AtomicFileListGetter(software.amazon.awssdk.services.s3.S3Client s3Client, String bucket) Constructor to get all filesS3AtomicFileListGetter(software.amazon.awssdk.services.s3.S3Client s3Client, String bucket, String directory) Constructor to get files from directory -
Method Summary
-
Constructor Details
-
S3AtomicFileListGetter
public S3AtomicFileListGetter(software.amazon.awssdk.services.s3.S3Client s3Client, String bucket, String directory) Constructor to get files from directory- Parameters:
s3Client- s3 clientbucket- bucketdirectory- directory
-
S3AtomicFileListGetter
Constructor to get all files- Parameters:
s3Client- s3 clientbucket- bucket
-
-
Method Details
-
execute
Executes s3 get files- Specified by:
executein interfaceAtomicCommand<List<String>>- Returns:
- uploaded file name
- Throws:
IOException- if atomic command was not successful
-
getInfo
Gets information about atomic command (mostly for logs)- Specified by:
getInfoin interfaceAtomicCommand<List<String>>- Returns:
- information about atomic command
-
getCompletedInfo
Gets information about completed atomic command (mostly for logs)- Specified by:
getCompletedInfoin interfaceAtomicCommand<List<String>>- Returns:
- information about completed atomic command
-
getFailedInfo
Gets information about failed atomic command (mostly for logs)- Specified by:
getFailedInfoin interfaceAtomicCommand<List<String>>- Returns:
- information about failed atomic command
-