public class TapeLibraryServiceImpl extends Object implements TapeLibraryService
| Modifier and Type | Field and Description |
|---|---|
String |
MSG_PREFIX |
static long |
SLEEP_TIME |
TAPE_LABEL, TAPE_MSG| Constructor and Description |
|---|
TapeLibraryServiceImpl(TapeDriveService tapeDriveService,
TapeRobotPool tapeRobotPool) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkTapeLabel(TapeCatalog tape,
boolean forceOverrideNonEmptyCartridges) |
Integer |
getDriveIndex() |
TapeDriveSpec |
getDriveStatus(ReadWriteErrorCode readWriteErrorCode) |
String |
getLibraryIdentifier() |
String |
getOutputDirectory() |
void |
goToPosition(TapeCatalog tape,
Integer position,
ReadWriteErrorCode readWriteErrorCode) |
void |
loadTape(TapeCatalog tape) |
void |
read(TapeCatalog tape,
Integer position,
String outputPath) |
void |
unloadTape(TapeCatalog tape) |
void |
write(String filePath,
long writtenBytes,
TapeCatalog tape) |
public static final long SLEEP_TIME
public final String MSG_PREFIX
public TapeLibraryServiceImpl(TapeDriveService tapeDriveService, TapeRobotPool tapeRobotPool)
public void goToPosition(TapeCatalog tape, Integer position, ReadWriteErrorCode readWriteErrorCode) throws ReadWriteException
goToPosition in interface TapeLibraryServiceReadWriteExceptionpublic void write(String filePath, long writtenBytes, TapeCatalog tape) throws ReadWriteException
write in interface TapeLibraryServiceReadWriteExceptionpublic void read(TapeCatalog tape, Integer position, String outputPath) throws ReadWriteException
read in interface TapeLibraryServiceReadWriteExceptionpublic void loadTape(TapeCatalog tape) throws ReadWriteException
loadTape in interface TapeLibraryServiceReadWriteExceptionpublic void unloadTape(TapeCatalog tape) throws ReadWriteException
unloadTape in interface TapeLibraryServiceReadWriteExceptionpublic TapeDriveSpec getDriveStatus(ReadWriteErrorCode readWriteErrorCode) throws ReadWriteException
getDriveStatus in interface TapeLibraryServiceReadWriteExceptionpublic Integer getDriveIndex()
getDriveIndex in interface TapeLibraryServicepublic String getLibraryIdentifier()
getLibraryIdentifier in interface TapeLibraryServicepublic String getOutputDirectory()
getOutputDirectory in interface TapeLibraryServicepublic boolean checkTapeLabel(TapeCatalog tape, boolean forceOverrideNonEmptyCartridges) throws ReadWriteException
checkTapeLabel in interface TapeLibraryServiceReadWriteExceptionCopyright © 2019 Vitam. All rights reserved.