Package org.duracloud.client
Interface ContentStoreManager
-
- All Superinterfaces:
Securable
- All Known Implementing Classes:
CachingContentStoreManagerImpl,ContentStoreManagerImpl
public interface ContentStoreManager extends Securable
Provides facilities for connecting to a set of content stores- Author:
- Bill Branan
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ContentStoregetContentStore(String storeID)Gets a specific content store based on ID.ContentStoregetContentStore(String storeID, int maxRetries)Gets a specific content store based on ID.Map<String,ContentStore>getContentStores()Gets all available content stores.Map<String,ContentStore>getContentStores(int maxRetries)Gets all available content stores.ContentStoregetPrimaryContentStore()Gets the primary content store.ContentStoregetPrimaryContentStore(int maxRetries)Gets the primary content store.ContentStoregetPrimaryContentStoreAsAnonymous()Provides access to the primary content store without requiring login().ContentStoregetPrimaryContentStoreAsAnonymous(int maxRetries)Provides access to the primary content store without requiring login().voidreinitialize(String host, String port, String context)reconfigure
-
-
-
Method Detail
-
getContentStores
Map<String,ContentStore> getContentStores() throws ContentStoreException
Gets all available content stores. Each content store uses the default number of retries (3) on call failure.- Returns:
- a map of content stores to content store IDs
- Throws:
ContentStoreException- if the content store list cannot be retrieved
-
getContentStores
Map<String,ContentStore> getContentStores(int maxRetries) throws ContentStoreException
Gets all available content stores.- Parameters:
maxRetries- number of retries to perform if a content store call fails- Returns:
- a map of content stores to content store IDs
- Throws:
ContentStoreException- if the content store list cannot be retrieved
-
getContentStore
ContentStore getContentStore(String storeID) throws ContentStoreException
Gets a specific content store based on ID. Content store uses the default number of retries (3) on call failure.- Parameters:
storeID- the ID of a particular content store- Returns:
- the ContentStore mapped to storeID
- Throws:
ContentStoreException- if the content store cannot be retrieved
-
getContentStore
ContentStore getContentStore(String storeID, int maxRetries) throws ContentStoreException
Gets a specific content store based on ID.- Parameters:
storeID- the ID of a particular content storemaxRetries- number of retries to perform if a content store call fails- Returns:
- the ContentStore mapped to storeID
- Throws:
ContentStoreException- if the content store cannot be retrieved
-
getPrimaryContentStore
ContentStore getPrimaryContentStore() throws ContentStoreException
Gets the primary content store. Content store uses the default number of retries (3) on call failure.- Returns:
- the primary ContentStore
- Throws:
ContentStoreException
-
getPrimaryContentStore
ContentStore getPrimaryContentStore(int maxRetries) throws ContentStoreException
Gets the primary content store.- Parameters:
maxRetries- number of retries to perform if a content store call fails- Returns:
- the primary ContentStore
- Throws:
ContentStoreException
-
getPrimaryContentStoreAsAnonymous
ContentStore getPrimaryContentStoreAsAnonymous() throws ContentStoreException
Provides access to the primary content store without requiring login(). Only certain ContentStore activities are permitted to anonymous users, primarily getting content from open spaces. Content store uses the default number of retries (3) on call failure.- Returns:
- the primary ContentStore
- Throws:
ContentStoreException
-
getPrimaryContentStoreAsAnonymous
ContentStore getPrimaryContentStoreAsAnonymous(int maxRetries) throws ContentStoreException
Provides access to the primary content store without requiring login(). Only certain ContentStore activities are permitted to anonymous users, primarily getting content from open spaces.- Parameters:
maxRetries- number of retries to perform if a content store call fails- Returns:
- the primary ContentStore
- Throws:
ContentStoreException
-
reinitialize
void reinitialize(String host, String port, String context) throws ContentStoreException
reconfigure
- Parameters:
host- of durastoreport- of durastorecontext- of durastore- Throws:
ContentStoreException
-
-