Class DdTapeLibraryService
java.lang.Object
fr.gouv.vitam.storage.offers.tape.impl.readwrite.DdTapeLibraryService
- All Implemented Interfaces:
TapeReadWriteService
-
Constructor Summary
ConstructorsConstructorDescriptionDdTapeLibraryService(TapeDriveConf tapeDriveConf, String inputDirectory, String tmpOutputStorageFolder) -
Method Summary
Modifier and TypeMethodDescriptionvoidreadFromTape(String outputPath) voidwriteToTape(String inputPath)
-
Constructor Details
-
DdTapeLibraryService
public DdTapeLibraryService(TapeDriveConf tapeDriveConf, String inputDirectory, String tmpOutputStorageFolder)
-
-
Method Details
-
writeToTape
- Specified by:
writeToTapein interfaceTapeReadWriteService- Parameters:
inputPath- mini-path to file from workingDir- Throws:
TapeCommandException- on command failure
-
readFromTape
- Specified by:
readFromTapein 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:
getTmpOutputStorageFolderin interfaceTapeReadWriteService
-