Package de.dlr.proseo.storagemgr.s3
Klasse S3AtomicSynchroFileUploader
java.lang.Object
de.dlr.proseo.storagemgr.s3.S3AtomicSynchroFileUploader
- Alle implementierten Schnittstellen:
AtomicCommand<String>
S3 Atomic Synchro Uploader
- Autor:
- Denys Chaykovskiy
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungS3AtomicSynchroFileUploader(com.amazonaws.services.s3.AmazonS3 s3ClientV1, String bucket, String sourceFile, String targetFileOrDir, S3Configuration cfg) Constructor -
Methodenübersicht
-
Konstruktordetails
-
S3AtomicSynchroFileUploader
public S3AtomicSynchroFileUploader(com.amazonaws.services.s3.AmazonS3 s3ClientV1, String bucket, String sourceFile, String targetFileOrDir, S3Configuration cfg) Constructor- Parameter:
s3ClientV1- s3 clientbucket- bucketsourceFile- sourceFiletargetFileOrDir- target file or directorycfg- s3 Configuration
-
-
Methodendetails
-
execute
Executes synchro upload of the file to s3- Angegeben von:
executein SchnittstelleAtomicCommand<String>- Gibt zurück:
- uploaded file name
- Löst aus:
IOException- if atomic command was not successful
-
getInfo
Gets information about atomic command (mostly for logs)- Angegeben von:
getInfoin SchnittstelleAtomicCommand<String>- Gibt zurück:
- information about atomic command
-
getCompletedInfo
Gets information about completed atomic command (mostly for logs)- Angegeben von:
getCompletedInfoin SchnittstelleAtomicCommand<String>- Gibt zurück:
- information about completed atomic command
-
getFailedInfo
Gets information about failed atomic command (mostly for logs)- Angegeben von:
getFailedInfoin SchnittstelleAtomicCommand<String>- Gibt zurück:
- information about failed atomic command
-