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 void
eject()
Rewind and eject the tapevoid
goToEnd()
EOD end of datavoid
move(int position, boolean isBackward)
fsf / bsfmvoid
rewind()
Go to startTapeDriveSpec
status()
-
-
-
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:
status
in interfaceTapeDriveCommandService
- Returns:
- Throws:
TapeCommandException
- on command failure
-
move
public void move(int position, boolean isBackward) throws TapeCommandException
Description copied from interface:TapeDriveCommandService
fsf / bsfm- Specified by:
move
in interfaceTapeDriveCommandService
- Throws:
TapeCommandException
- on command failure
-
rewind
public void rewind() throws TapeCommandException
Description copied from interface:TapeDriveCommandService
Go to start- Specified by:
rewind
in interfaceTapeDriveCommandService
- Throws:
TapeCommandException
-
goToEnd
public void goToEnd() throws TapeCommandException
Description copied from interface:TapeDriveCommandService
EOD end of data- Specified by:
goToEnd
in interfaceTapeDriveCommandService
- Throws:
TapeCommandException
- on command failure
-
eject
public void eject() throws TapeCommandException
Description copied from interface:TapeDriveCommandService
Rewind and eject the tape- Specified by:
eject
in interfaceTapeDriveCommandService
- Throws:
TapeCommandException
- on command failure
-
-