Package de.dlr.proseo.storagemgr.posix
Class PosixAtomicFileDownloader
java.lang.Object
de.dlr.proseo.storagemgr.posix.PosixAtomicFileDownloader
- All Implemented Interfaces:
AtomicCommand<String>
Posix Atomic File Downloader from the POSIX Storage to some POSIX Path (normally, to the cache)
- Author:
- Denys Chaykovskiy
-
Constructor Summary
ConstructorsConstructorDescriptionPosixAtomicFileDownloader(String sourceFile, String targetFileOrDir) Constructor -
Method Summary
Modifier and TypeMethodDescriptionexecute()Executes download of the file from the storage to posix pathGets information about completed atomic command (mostly for logs)Gets information about failed atomic command (mostly for logs)getInfo()Gets information about atomic command (mostly for logs)
-
Constructor Details
-
PosixAtomicFileDownloader
Constructor- Parameters:
sourceFile- sourceFiletargetFileOrDir- target file or directory
-
-
Method Details
-
execute
Executes download of the file from the storage 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
-