Klasse PosixAtomicFileDownloader

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

public class PosixAtomicFileDownloader extends Object implements AtomicCommand<String>
Posix Atomic File Downloader from the POSIX Storage to some POSIX Path (normally, to the cache)
Autor:
Denys Chaykovskiy
  • Konstruktordetails

    • PosixAtomicFileDownloader

      public PosixAtomicFileDownloader(String sourceFile, String targetFileOrDir)
      Constructor
      Parameter:
      sourceFile - sourceFile
      targetFileOrDir - target file or directory
  • Methodendetails

    • execute

      public String execute() throws IOException
      Executes download of the file from the storage to posix path
      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