Interface TapeLibraryService
-
- All Known Implementing Classes:
TapeLibraryServiceImpl
public interface TapeLibraryService
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTAPE_LABELstatic java.lang.StringTAPE_MSG
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancheckTapeLabel(TapeCatalog tape, boolean forceOverrideNonEmptyCartridges)java.lang.IntegergetDriveIndex()TapeDriveSpecgetDriveStatus(ReadWriteErrorCode readWriteErrorCode)java.lang.StringgetLibraryIdentifier()java.lang.StringgetOutputDirectory()voidgoToPosition(TapeCatalog tape, java.lang.Integer position, ReadWriteErrorCode readWriteErrorCode)voidloadTape(TapeCatalog tape)voidread(TapeCatalog tape, java.lang.Integer position, java.lang.String outputPath)voidunloadTape(TapeCatalog tape)voidwrite(java.lang.String filePath, long writtenBytes, TapeCatalog tape)
-
-
-
Field Detail
-
TAPE_MSG
static final java.lang.String TAPE_MSG
- See Also:
- Constant Field Values
-
TAPE_LABEL
static final java.lang.String TAPE_LABEL
- See Also:
- Constant Field Values
-
-
Method Detail
-
goToPosition
void goToPosition(TapeCatalog tape, java.lang.Integer position, ReadWriteErrorCode readWriteErrorCode) throws ReadWriteException
- Throws:
ReadWriteException
-
write
void write(java.lang.String filePath, long writtenBytes, TapeCatalog tape) throws ReadWriteException- Throws:
ReadWriteException
-
read
void read(TapeCatalog tape, java.lang.Integer position, java.lang.String outputPath) throws ReadWriteException
- Throws:
ReadWriteException
-
loadTape
void loadTape(TapeCatalog tape) throws ReadWriteException
- Throws:
ReadWriteException
-
unloadTape
void unloadTape(TapeCatalog tape) throws ReadWriteException
- Throws:
ReadWriteException
-
getDriveStatus
TapeDriveSpec getDriveStatus(ReadWriteErrorCode readWriteErrorCode) throws ReadWriteException
- Throws:
ReadWriteException
-
getDriveIndex
java.lang.Integer getDriveIndex()
-
getLibraryIdentifier
java.lang.String getLibraryIdentifier()
-
getOutputDirectory
java.lang.String getOutputDirectory()
-
checkTapeLabel
boolean checkTapeLabel(TapeCatalog tape, boolean forceOverrideNonEmptyCartridges) throws ReadWriteException
- Parameters:
tape-forceOverrideNonEmptyCartridges-- Returns:
- true to inform that update tape catalog is needed, false else
- Throws:
ReadWriteException
-
-