Klasse S3AtomicFileUploaderV2

java.lang.Object
de.dlr.proseo.storagemgr.s3.S3AtomicFileUploaderV2
Alle implementierten Schnittstellen:
AtomicCommand<String>

public class S3AtomicFileUploaderV2 extends Object implements AtomicCommand<String>
S3 Atomic Uploader
Autor:
Denys Chaykovskiy
  • Konstruktordetails

    • S3AtomicFileUploaderV2

      public S3AtomicFileUploaderV2(software.amazon.awssdk.services.s3.S3AsyncClient s3AsyncClientV2, String bucket, String sourceFile, String targetFileOrDir)
      Constructor
      Parameter:
      s3AsyncClientV2 - s3 client V2 (asynchronous)
      bucket - bucket
      sourceFile - sourceFile
      targetFileOrDir - target file or directory
  • Methodendetails

    • execute

      public String execute() throws IOException
      Executes upload of the file to s3
      Angegeben von:
      execute in Schnittstelle AtomicCommand<String>
      Gibt zurück:
      uploaded file name
      Löst aus:
      IOException - if atomic command was not successful
    • getInfo

      public String getInfo()
      Gets information about atomic command (mostly for logs)
      Angegeben von:
      getInfo in Schnittstelle AtomicCommand<String>
      Gibt zurück:
      information about atomic command
    • getCompletedInfo

      public String getCompletedInfo()
      Gets information about completed atomic command (mostly for logs)
      Angegeben von:
      getCompletedInfo in Schnittstelle AtomicCommand<String>
      Gibt zurück:
      information about completed atomic command
    • getFailedInfo

      public String getFailedInfo()
      Gets information about failed atomic command (mostly for logs)
      Angegeben von:
      getFailedInfo in Schnittstelle AtomicCommand<String>
      Gibt zurück:
      information about failed atomic command