Interface TapeLibraryService
-
- All Known Implementing Classes:
TapeLibraryServiceImpl
public interface TapeLibraryService
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TAPE_LABEL
static java.lang.String
TAPE_MSG
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
checkTapeLabel(TapeCatalog tape, boolean forceOverrideNonEmptyCartridges)
java.lang.Integer
getDriveIndex()
TapeDriveSpec
getDriveStatus(ReadWriteErrorCode readWriteErrorCode)
java.lang.String
getLibraryIdentifier()
java.lang.String
getOutputDirectory()
void
goToPosition(TapeCatalog tape, java.lang.Integer position, ReadWriteErrorCode readWriteErrorCode)
void
loadTape(TapeCatalog tape)
void
read(TapeCatalog tape, java.lang.Integer position, java.lang.String outputPath)
void
unloadTape(TapeCatalog tape)
void
write(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
-
-