Class DdTapeLibraryService
java.lang.Object
fr.gouv.vitam.storage.offers.tape.impl.readwrite.DdTapeLibraryService
- All Implemented Interfaces:
TapeReadWriteService
-
Constructor Summary
ConstructorDescriptionDdTapeLibraryService
(TapeDriveConf tapeDriveConf, String inputDirectory, String tmpOutputStorageFolder) -
Method Summary
Modifier and TypeMethodDescriptionvoid
readFromTape
(String outputPath) void
writeToTape
(String inputPath)
-
Constructor Details
-
DdTapeLibraryService
public DdTapeLibraryService(TapeDriveConf tapeDriveConf, String inputDirectory, String tmpOutputStorageFolder)
-
-
Method Details
-
writeToTape
- Specified by:
writeToTape
in interfaceTapeReadWriteService
- Parameters:
inputPath
- mini-path to file from workingDir- Throws:
TapeCommandException
- on command failure
-
readFromTape
- Specified by:
readFromTape
in interfaceTapeReadWriteService
- Parameters:
outputPath
- in case dd implementation, outputPath is mini-path to file from workingDir. In case of tar implementation, outputPath is the file inside tar to extract- Throws:
TapeCommandException
- on command failure
-
getTmpOutputStorageFolder
- Specified by:
getTmpOutputStorageFolder
in interfaceTapeReadWriteService
-