Interface TapeCatalogService
-
- All Superinterfaces:
QueueRepository
- All Known Implementing Classes:
TapeCatalogServiceImpl
public interface TapeCatalogService extends QueueRepository
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
create(TapeCatalog tapeCatalog)
java.util.List<TapeCatalog>
find(java.util.List<QueryCriteria> criteria)
TapeCatalog
findById(java.lang.String tapeId)
java.util.Map<java.lang.Integer,TapeCatalog>
init(java.lang.String tapeLibraryIdentifier, TapeLibrarySpec libraryState)
Return map of drive index with his current tape If all drive are empty then return an empty mapboolean
replace(TapeCatalog tapeCatalog)
boolean
update(java.lang.String tapeId, java.util.Map<java.lang.String,java.lang.Object> criteria)
-
Methods inherited from interface fr.gouv.vitam.storage.offers.tape.spec.QueueRepository
add, addIfAbsent, complete, initializeOnBootstrap, markError, markReady, receive, receive, receive, receive, receive, receive, remove
-
-
-
-
Method Detail
-
create
void create(TapeCatalog tapeCatalog) throws TapeCatalogException
- Throws:
TapeCatalogException
-
replace
boolean replace(TapeCatalog tapeCatalog) throws TapeCatalogException
- Throws:
TapeCatalogException
-
update
boolean update(java.lang.String tapeId, java.util.Map<java.lang.String,java.lang.Object> criteria) throws TapeCatalogException
- Throws:
TapeCatalogException
-
init
java.util.Map<java.lang.Integer,TapeCatalog> init(java.lang.String tapeLibraryIdentifier, TapeLibrarySpec libraryState) throws TapeCatalogException
Return map of drive index with his current tape If all drive are empty then return an empty map- Parameters:
tapeLibraryIdentifier
-libraryState
-- Returns:
- Throws:
TapeCatalogException
-
findById
TapeCatalog findById(java.lang.String tapeId) throws TapeCatalogException
- Throws:
TapeCatalogException
-
find
java.util.List<TapeCatalog> find(java.util.List<QueryCriteria> criteria) throws TapeCatalogException
- Throws:
TapeCatalogException
-
-