Klasse S3AtomicFileListDeleter

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

public class S3AtomicFileListDeleter extends Object implements AtomicCommand<List<String>>
S3 Atomic File List Deleter
Autor:
Denys Chaykovskiy
  • Konstruktordetails

    • S3AtomicFileListDeleter

      public S3AtomicFileListDeleter(software.amazon.awssdk.services.s3.S3Client s3Client, String bucket, String directory)
      Constructor
      Parameter:
      s3Client - s3 client
      bucket - bucket
      directory - directory
  • Methodendetails

    • execute

      public List<String> execute() throws IOException
      Deletes a list of files
      Angegeben von:
      execute in Schnittstelle AtomicCommand<List<String>>
      Gibt zurück:
      list of deleted files
      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<List<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<List<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<List<String>>
      Gibt zurück:
      information about failed atomic command