Package de.dlr.proseo.storagemgr.s3
Class S3AtomicBucketDeleter
java.lang.Object
de.dlr.proseo.storagemgr.s3.S3AtomicBucketDeleter
- All Implemented Interfaces:
AtomicCommand<String>
S3 Atomic Bucket Deleter
- Author:
- Denys Chaykovskiy
-
Constructor Summary
ConstructorsConstructorDescriptionS3AtomicBucketDeleter(software.amazon.awssdk.services.s3.S3Client s3Client, String bucket) Constructor -
Method Summary
-
Constructor Details
-
S3AtomicBucketDeleter
Constructor- Parameters:
s3Client- s3 clientbucket- bucket
-
-
Method Details
-
execute
Executes s3 bucket delete- Specified by:
executein interfaceAtomicCommand<String>- Returns:
- deleted bucket name
- Throws:
IOException- if atomic command was not successful
-
getInfo
Gets information about atomic command (mostly for logs)- Specified by:
getInfoin interfaceAtomicCommand<String>- Returns:
- information about atomic command
-
getCompletedInfo
Gets information about completed atomic command (mostly for logs)- Specified by:
getCompletedInfoin interfaceAtomicCommand<String>- Returns:
- information about completed atomic command
-
getFailedInfo
Gets information about failed atomic command (mostly for logs)- Specified by:
getFailedInfoin interfaceAtomicCommand<String>- Returns:
- information about failed atomic command
-