Package org.duracloud.client.impl
Class CachingContentStoreImpl
java.lang.Object
org.duracloud.client.ContentStoreImpl
org.duracloud.client.impl.CachingContentStoreImpl
- All Implemented Interfaces:
ContentStore
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
ConstructorsConstructorDescriptionCachingContentStoreImpl(String baseURL, StorageProviderType type, String storeId, Boolean writable, RestHttpHelper restHelper) -
Method Summary
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 Details
-
CachingContentStoreImpl
public CachingContentStoreImpl(String baseURL, StorageProviderType type, String storeId, Boolean writable, RestHttpHelper restHelper)
-
-
Method Details
-
getSpaces
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
-