Package org.duracloud.client.impl
Class CachingContentStoreImpl
- java.lang.Object
-
- org.duracloud.client.ContentStoreImpl
-
- org.duracloud.client.impl.CachingContentStoreImpl
-
- All Implemented Interfaces:
ContentStore
public class CachingContentStoreImpl extends ContentStoreImpl
This class retains the results of the initial call to: getSpaces() and returns this cached value on subsequent calls.- Author:
- Andrew Woods Date: Nov 30, 2010
-
-
Field Summary
-
Fields inherited from interface org.duracloud.client.ContentStore
CONTENT_CHECKSUM, CONTENT_FILE_ACCESSED, CONTENT_FILE_CREATED, CONTENT_FILE_MODIFIED, CONTENT_MIMETYPE, CONTENT_MODIFIED, CONTENT_SIZE, HLS_STREAMING_HOST, HLS_STREAMING_TYPE, SPACE_COUNT, SPACE_CREATED, SPACE_SIZE
-
-
Constructor Summary
Constructors Constructor Description CachingContentStoreImpl(String baseURL, StorageProviderType type, String storeId, Boolean writable, RestHttpHelper restHelper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getSpaces()Provides a listing of all spaces IDs.-
Methods inherited from class org.duracloud.client.ContentStoreImpl
addContent, contentExists, copyContent, copyContent, createSpace, deleteContent, deleteSpace, doGetContent, execute, getAuditLog, getBaseURL, getBitIntegrityReport, getBitIntegrityReportProperties, getContent, getContent, getContentProperties, getManifest, getSpace, getSpaceACLs, getSpaceContents, getSpaceContents, getSpaceProperties, getSpaceStats, getStorageProviderStats, getStorageProviderStatsByDay, getStorageProviderType, getStoreId, getSupportedTasks, isWritable, moveContent, moveContent, performTask, performTaskWithNoRetries, setContentProperties, setRetryExceptionHandler, setSpaceACLs, spaceExists, toString, validateContentId, validateSpaceId, validateStoreId
-
-
-
-
Constructor Detail
-
CachingContentStoreImpl
public CachingContentStoreImpl(String baseURL, StorageProviderType type, String storeId, Boolean writable, RestHttpHelper restHelper)
-
-
Method Detail
-
getSpaces
public List<String> getSpaces() throws ContentStoreException
Description copied from class:ContentStoreImplProvides a listing of all spaces IDs.- Specified by:
getSpacesin interfaceContentStore- Overrides:
getSpacesin classContentStoreImpl- Returns:
- Iterator listing spaceIds
- Throws:
ContentStoreException- if an error occurs
-
-