Class NihmsDepositIdCache
java.lang.Object
org.eclipse.pass.loader.nihms.client.cache.NihmsDepositIdCache
Caches submission and depositId combination for easy lookup
Note: cache only contains deposits for nihms
- Author:
- Karen Hanson
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Empty mapRetrieve depositId by submissionIdstatic NihmsDepositIdCacheGet singleton instance of NihmsDepositIdCachevoidAdd deposit to mapvoidRemove a Deposit from cacheintsize()Get number of cached deposits
-
Method Details
-
getInstance
Get singleton instance of NihmsDepositIdCache- Returns:
- the deposit id cache
-
put
Add deposit to map- Parameters:
submissionId- the submission iddepositId- the deposit id
-
get
Retrieve depositId by submissionId- Parameters:
submissionId- the submission id- Returns:
- the URI from the deposit cache
-
remove
Remove a Deposit from cache- Parameters:
submissionId- the submission id
-
size
public int size()Get number of cached deposits- Returns:
- the number of cached deposits
-
clear
public void clear()Empty map
-