Class MtTapeLibraryService
- java.lang.Object
-
- fr.gouv.vitam.storage.offers.tape.impl.drive.MtTapeLibraryService
-
- All Implemented Interfaces:
TapeDriveCommandService
public class MtTapeLibraryService extends java.lang.Object implements TapeDriveCommandService
-
-
Constructor Summary
Constructors Constructor Description MtTapeLibraryService(TapeDriveConf tapeDriveConf)MtTapeLibraryService(TapeDriveConf tapeDriveConf, ProcessExecutor processExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voideject()Rewind and eject the tapevoidgoToEnd()EOD end of datavoidmove(int position, boolean isBackward)fsf / bsfmvoidrewind()Go to startTapeDriveSpecstatus()
-
-
-
Field Detail
-
F
public static final java.lang.String F
- See Also:
- Constant Field Values
-
STATUS
public static final java.lang.String STATUS
- See Also:
- Constant Field Values
-
FSF
public static final java.lang.String FSF
- See Also:
- Constant Field Values
-
BSFM
public static final java.lang.String BSFM
- See Also:
- Constant Field Values
-
REWIND
public static final java.lang.String REWIND
- See Also:
- Constant Field Values
-
EOD
public static final java.lang.String EOD
- See Also:
- Constant Field Values
-
OFFLINE
public static final java.lang.String OFFLINE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MtTapeLibraryService
public MtTapeLibraryService(TapeDriveConf tapeDriveConf)
-
MtTapeLibraryService
public MtTapeLibraryService(TapeDriveConf tapeDriveConf, ProcessExecutor processExecutor)
-
-
Method Detail
-
status
public TapeDriveSpec status() throws TapeCommandException
- Specified by:
statusin interfaceTapeDriveCommandService- Returns:
- Throws:
TapeCommandException- on command failure
-
move
public void move(int position, boolean isBackward) throws TapeCommandExceptionDescription copied from interface:TapeDriveCommandServicefsf / bsfm- Specified by:
movein interfaceTapeDriveCommandService- Throws:
TapeCommandException- on command failure
-
rewind
public void rewind() throws TapeCommandExceptionDescription copied from interface:TapeDriveCommandServiceGo to start- Specified by:
rewindin interfaceTapeDriveCommandService- Throws:
TapeCommandException
-
goToEnd
public void goToEnd() throws TapeCommandExceptionDescription copied from interface:TapeDriveCommandServiceEOD end of data- Specified by:
goToEndin interfaceTapeDriveCommandService- Throws:
TapeCommandException- on command failure
-
eject
public void eject() throws TapeCommandExceptionDescription copied from interface:TapeDriveCommandServiceRewind and eject the tape- Specified by:
ejectin interfaceTapeDriveCommandService- Throws:
TapeCommandException- on command failure
-
-