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, ProcessExecutor processExecutor, java.lang.String inputDirectory, java.lang.String outputDirectory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProcessExecutor
getExecutor()
java.lang.String
getInputDirectory()
java.lang.String
getOutputDirectory()
TapeResponse
readFromTape(java.lang.String outputPath)
TapeResponse
writeToTape(java.lang.String inputPath)
-
-
-
Field Detail
-
IF
public static final java.lang.String IF
- See Also:
- Constant Field Values
-
OF
public static final java.lang.String OF
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DdTapeLibraryService
public DdTapeLibraryService(TapeDriveConf tapeDriveConf, ProcessExecutor processExecutor, java.lang.String inputDirectory, java.lang.String outputDirectory)
-
-
Method Detail
-
writeToTape
public TapeResponse writeToTape(java.lang.String inputPath)
- Specified by:
writeToTape
in interfaceTapeReadWriteService
- Parameters:
inputPath
- mini-path to file from workingDir- Returns:
- TapeResponse
-
readFromTape
public TapeResponse readFromTape(java.lang.String outputPath)
- Specified by:
readFromTape
in interfaceTapeReadWriteService
- Parameters:
outputPath
- in case dd implementation, outputPath is mini-path to file from workingDir. In case of tar implmentation, outputPath is the file inside tar to extrac- Returns:
- TapeResponse
-
getExecutor
public ProcessExecutor getExecutor()
- Specified by:
getExecutor
in interfaceTapeReadWriteService
-
getOutputDirectory
public java.lang.String getOutputDirectory()
- Specified by:
getOutputDirectory
in interfaceTapeReadWriteService
-
getInputDirectory
public java.lang.String getInputDirectory()
- Specified by:
getInputDirectory
in interfaceTapeReadWriteService
-
-