Class InaTapeHelper
java.lang.Object
fr.gouv.vitam.storage.cold.server.simulator.util.InaTapeHelper
Helper class for tape operations.
-
Constructor Summary
ConstructorsConstructorDescriptionInaTapeHelper(TapeCatalogRepository tapeCatalogRepository, TapeDriveRepository tapeDriveRepository) -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdriveIdByIndex(int driveIndex) getTapeCatalogModel(String tapeCode) Retrieves a tape catalog model by its tape code.getTapeDriveModel(int driveIndex) Retrieves a tape drive model by its index.
-
Constructor Details
-
InaTapeHelper
public InaTapeHelper(TapeCatalogRepository tapeCatalogRepository, TapeDriveRepository tapeDriveRepository)
-
-
Method Details
-
driveIdByIndex
-
getTapeDriveModel
Retrieves a tape drive model by its index.- Parameters:
driveIndex- the drive index- Returns:
- the tape drive model
- Throws:
InaTapeProxyServerException- if the drive is not found
-
getTapeCatalogModel
Retrieves a tape catalog model by its tape code.- Parameters:
tapeCode- the tape code- Returns:
- the tape catalog model
- Throws:
InaTapeProxyServerException- if the tape is not found
-