Package org.duracloud.client.impl
Class CachingContentStoreManagerImpl
java.lang.Object
org.duracloud.client.ContentStoreManagerImpl
org.duracloud.client.impl.CachingContentStoreManagerImpl
- All Implemented Interfaces:
ContentStoreManager,Securable
This class retains the results of the initial call to both:
getContentStores() &
getPrimaryContentStore()
and returns these cached values on subsequent calls.
- Author:
- Andrew Woods Date: Nov 30, 2010
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets all available content stores.Gets the primary content store.protected ContentStoreprotected voidsetRestHelper(RestHttpHelper restHelper) Methods inherited from class org.duracloud.client.ContentStoreManagerImpl
getBaseURL, getContentStore, getContentStore, getContentStores, getPrimaryContentStore, getPrimaryContentStoreAsAnonymous, getPrimaryContentStoreAsAnonymous, getRestHelper, isWritable, login, logout, newContentStoreImpl, reinitialize
-
Constructor Details
-
CachingContentStoreManagerImpl
-
-
Method Details
-
getContentStores
Description copied from class:ContentStoreManagerImplGets all available content stores. Each content store uses the default number of retries (3) on call failure.- Specified by:
getContentStoresin interfaceContentStoreManager- Overrides:
getContentStoresin classContentStoreManagerImpl- Returns:
- a map of content stores to content store IDs
- Throws:
ContentStoreException- if the content store list cannot be retrieved
-
getPrimaryContentStore
Description copied from class:ContentStoreManagerImplGets the primary content store. Content store uses the default number of retries (3) on call failure.- Specified by:
getPrimaryContentStorein interfaceContentStoreManager- Overrides:
getPrimaryContentStorein classContentStoreManagerImpl- Returns:
- the primary ContentStore
- Throws:
ContentStoreException
-
newContentStoreImpl
- Overrides:
newContentStoreImplin classContentStoreManagerImpl
-
setRestHelper
- Overrides:
setRestHelperin classContentStoreManagerImpl
-