Class DdTapeLibraryService
- java.lang.Object
-
- fr.gouv.vitam.storage.offers.tape.impl.readwrite.DdTapeLibraryService
-
- All Implemented Interfaces:
TapeReadWriteService
public class DdTapeLibraryService extends java.lang.Object implements TapeReadWriteService
-
-
Constructor Summary
Constructors Constructor Description DdTapeLibraryService(TapeDriveConf tapeDriveConf, java.lang.String inputDirectory, java.lang.String tmpOutputStorageFolder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getTmpOutputStorageFolder()
void
readFromTape(java.lang.String outputPath)
void
writeToTape(java.lang.String inputPath)
-
-
-
Constructor Detail
-
DdTapeLibraryService
public DdTapeLibraryService(TapeDriveConf tapeDriveConf, java.lang.String inputDirectory, java.lang.String tmpOutputStorageFolder)
-
-
Method Detail
-
writeToTape
public void writeToTape(java.lang.String inputPath) throws TapeCommandException
- Specified by:
writeToTape
in interfaceTapeReadWriteService
- Parameters:
inputPath
- mini-path to file from workingDir- Throws:
TapeCommandException
- on command failure
-
readFromTape
public void readFromTape(java.lang.String outputPath) throws TapeCommandException
- 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
public java.lang.String getTmpOutputStorageFolder()
- Specified by:
getTmpOutputStorageFolder
in interfaceTapeReadWriteService
-
-