Package fr.gouv.vitam.storage.offers.tape.impl.readwrite

# Class DdTapeLibraryService

java.lang.Object
fr.gouv.vitam.storage.offers.tape.impl.readwrite.DdTapeLibraryService

All Implemented Interfaces:
  `TapeReadWriteService`

public class DdTapeLibraryService extends Object implements TapeReadWriteService

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DdTapeLibraryService(TapeDriveConf tapeDriveConf, String inputDirectory, String tmpOutputStorageFolder)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getTmpOutputStorageFolder()`
  `void`
  `readFromTape(String outputPath)`
  `void`
  `writeToTape(String inputPath)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### DdTapeLibraryService

    public DdTapeLibraryService(TapeDriveConf tapeDriveConf, String inputDirectory, String tmpOutputStorageFolder)

- ## Method Details

  - ### writeToTape

    public void writeToTape(String inputPath) throws TapeCommandException
    Specified by:
      `writeToTape` in interface `TapeReadWriteService`
    Parameters:
      `inputPath` - mini-path to file from workingDir
    Throws:
      `TapeCommandException` - on command failure

  - ### readFromTape

    public void readFromTape(String outputPath) throws TapeCommandException
    Specified by:
      `readFromTape` in interface `TapeReadWriteService`
    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 String getTmpOutputStorageFolder()
    Specified by:
      `getTmpOutputStorageFolder` in interface `TapeReadWriteService`