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 TapeLibraryService
ReadWriteException
public void write(String filePath, long writtenBytes, TapeCatalog tape) throws ReadWriteException
write
in interface TapeLibraryService
ReadWriteException
public void read(TapeCatalog tape, Integer position, String outputPath) throws ReadWriteException
read
in interface TapeLibraryService
ReadWriteException
public void loadTape(TapeCatalog tape) throws ReadWriteException
loadTape
in interface TapeLibraryService
ReadWriteException
public void unloadTape(TapeCatalog tape) throws ReadWriteException
unloadTape
in interface TapeLibraryService
ReadWriteException
public TapeDriveSpec getDriveStatus(ReadWriteErrorCode readWriteErrorCode) throws ReadWriteException
getDriveStatus
in interface TapeLibraryService
ReadWriteException
public Integer getDriveIndex()
getDriveIndex
in interface TapeLibraryService
public String getLibraryIdentifier()
getLibraryIdentifier
in interface TapeLibraryService
public String getOutputDirectory()
getOutputDirectory
in interface TapeLibraryService
public boolean checkTapeLabel(TapeCatalog tape, boolean forceOverrideNonEmptyCartridges) throws ReadWriteException
checkTapeLabel
in interface TapeLibraryService
ReadWriteException
Copyright © 2019 Vitam. All rights reserved.