Class TapeDriveRepository
java.lang.Object
fr.gouv.vitam.storage.cold.server.simulator.repository.TapeDriveRepository
Repository for TapeDriveModel collection.
Manages CRUD operations for drive state persistence in the "tape_drive" collection.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindAll()Find all drives, ordered by index.Find drive by its ID (e.g.voidsave(TapeDriveModel drive) Save or update a drive model entry (upsert by _id).
-
Field Details
-
COLLECTION_NAME
- See Also:
-
-
Constructor Details
-
TapeDriveRepository
public TapeDriveRepository(com.mongodb.client.MongoDatabase mongoDatabase)
-
-
Method Details
-
save
Save or update a drive model entry (upsert by _id).- Throws:
InaTapeProxyRepositoryException
-
findById
Find drive by its ID (e.g. \"drive_0\").- Throws:
InaTapeProxyRepositoryException
-
findAll
Find all drives, ordered by index.- Throws:
InaTapeProxyRepositoryException
-