Klasse PosixAtomicFileCopier

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

public class PosixAtomicFileCopier extends Object implements AtomicCommand<String>
Posix Atomic File Copier from some POSIX absolute path to another POSIX absolute path (normally, to cache)
Autor:
Denys Chaykovskiy
  • Konstruktordetails

    • PosixAtomicFileCopier

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

    • execute

      public String execute() throws IOException
      Executes copy of the file from a posix path to a posix path (normally, to the cache)
      Angegeben von:
      execute in Schnittstelle AtomicCommand<String>
      Gibt zurück:
      copied 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