Interface TapeCatalogService
-
- All Known Implementing Classes:
TapeCatalogServiceImpl
public interface TapeCatalogService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcreate(TapeCatalog tapeCatalog)java.util.List<TapeCatalog>find(java.util.List<QueryCriteria> criteria)TapeCatalogfindById(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 mapvoidmarkReady(java.lang.String queueId)java.util.Optional<TapeCatalog>receive(org.bson.conversions.Bson inQuery)booleanreplace(TapeCatalog tapeCatalog)booleanupdate(java.lang.String tapeId, java.util.Map<java.lang.String,java.lang.Object> criteria)
-
-
-
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
-
markReady
void markReady(java.lang.String queueId) throws QueueException- Throws:
QueueException
-
receive
java.util.Optional<TapeCatalog> receive(org.bson.conversions.Bson inQuery) throws QueueException
- Throws:
QueueException
-
-