Class RemoteTapeReadWriteService
java.lang.Object
fr.gouv.vitam.storage.offers.tape.impl.remote.service.RemoteTapeReadWriteService
- All Implemented Interfaces:
TapeReadWriteService
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteTapeReadWriteService(InaTapeProxyApi inaTapeProxyApi, Integer driveIndex, String inputDirectory, String tmpOutputStorageFolder) -
Method Summary
Modifier and TypeMethodDescriptionvoidreadFromTape(String outputPath) voidwriteToTape(String inputPath)
-
Constructor Details
-
RemoteTapeReadWriteService
public RemoteTapeReadWriteService(InaTapeProxyApi inaTapeProxyApi, Integer driveIndex, 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
-