Class TapeLibraryServiceImpl
java.lang.Object
fr.gouv.vitam.storage.offers.tape.impl.readwrite.TapeLibraryServiceImpl
- All Implemented Interfaces:
TapeLibraryService
-
Field Summary
FieldsFields inherited from interface fr.gouv.vitam.storage.offers.tape.spec.TapeLibraryService
TAPE_LABEL, TAPE_MSG -
Constructor Summary
ConstructorsConstructorDescriptionTapeLibraryServiceImpl(TapeDriveService tapeDriveService, TapeRobotPool tapeRobotPool, int fullCartridgeDetectionThresholdInMB) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidensureTapeIsEmpty(TapeCatalog tape, boolean forceOverrideNonEmptyCartridges) getDriveStatus(ReadWriteErrorCode readWriteErrorCode) voidgoToPosition(TapeCatalog tape, Integer position, ReadWriteErrorCode readWriteErrorCode) voidloadTape(TapeCatalog tape) voidread(TapeCatalog tape, Integer position, String outputPath) voidrewindTape(TapeCatalog tape) voidunloadTape(TapeCatalog tape) voidwrite(String filePath, long writtenBytes, TapeCatalog tape)
-
Field Details
-
MSG_PREFIX
-
-
Constructor Details
-
TapeLibraryServiceImpl
public TapeLibraryServiceImpl(TapeDriveService tapeDriveService, TapeRobotPool tapeRobotPool, int fullCartridgeDetectionThresholdInMB)
-
-
Method Details
-
goToPosition
public void goToPosition(TapeCatalog tape, Integer position, ReadWriteErrorCode readWriteErrorCode) throws ReadWriteException - Specified by:
goToPositionin interfaceTapeLibraryService- Throws:
ReadWriteException
-
rewindTape
- Specified by:
rewindTapein interfaceTapeLibraryService- Throws:
ReadWriteException
-
write
- Specified by:
writein interfaceTapeLibraryService- Throws:
ReadWriteException
-
read
- Specified by:
readin interfaceTapeLibraryService- Throws:
ReadWriteException
-
loadTape
- Specified by:
loadTapein interfaceTapeLibraryService- Throws:
ReadWriteException
-
unloadTape
- Specified by:
unloadTapein interfaceTapeLibraryService- Throws:
ReadWriteException
-
getDriveStatus
public TapeDriveSpec getDriveStatus(ReadWriteErrorCode readWriteErrorCode) throws ReadWriteException - Specified by:
getDriveStatusin interfaceTapeLibraryService- Throws:
ReadWriteException
-
getDriveIndex
- Specified by:
getDriveIndexin interfaceTapeLibraryService
-
getLibraryIdentifier
- Specified by:
getLibraryIdentifierin interfaceTapeLibraryService
-
getTmpOutputDirectory
- Specified by:
getTmpOutputDirectoryin interfaceTapeLibraryService
-
ensureTapeIsEmpty
public void ensureTapeIsEmpty(TapeCatalog tape, boolean forceOverrideNonEmptyCartridges) throws ReadWriteException - Specified by:
ensureTapeIsEmptyin interfaceTapeLibraryService- Throws:
ReadWriteException
-
checkNonEmptyTapeLabel
- Specified by:
checkNonEmptyTapeLabelin interfaceTapeLibraryService- Throws:
ReadWriteException
-