Package de.dlr.proseo.storagemgr.posix
Class PosixAtomicFileUploader
java.lang.Object
de.dlr.proseo.storagemgr.posix.PosixAtomicFileUploader
- All Implemented Interfaces:
AtomicCommand<String>
Posix Atomic File Uploader from some external POSIX absolute path to the POSIX Storage
- Author:
- Denys Chaykovskiy
-
Constructor Summary
ConstructorsConstructorDescriptionPosixAtomicFileUploader(String sourceFile, String targetFileOrDir) Constructor -
Method Summary
-
Constructor Details
-
PosixAtomicFileUploader
Constructor- Parameters:
sourceFile- sourceFiletargetFileOrDir- target file or directory
-
-
Method Details
-
execute
Executes upload of the file to posix path- Specified by:
executein interfaceAtomicCommand<String>- Returns:
- uploaded file name
- Throws:
IOException- if atomic command was not successful
-
getInfo
Gets information about atomic command (mostly for logs)- Specified by:
getInfoin interfaceAtomicCommand<String>- Returns:
- information about atomic command
-
getCompletedInfo
Gets information about completed atomic command (mostly for logs)- Specified by:
getCompletedInfoin interfaceAtomicCommand<String>- Returns:
- information about completed atomic command
-
getFailedInfo
Gets information about failed atomic command (mostly for logs)- Specified by:
getFailedInfoin interfaceAtomicCommand<String>- Returns:
- information about failed atomic command
-