Package org.duracloud.retrieval.source
Class DuraStoreStitchingRetrievalSource
java.lang.Object
org.duracloud.retrieval.source.DuraStoreRetrievalSource
org.duracloud.retrieval.source.DuraStoreStitchingRetrievalSource
- All Implemented Interfaces:
RetrievalSource
- Direct Known Subclasses:
DuraStoreSpecifiedRetrievalSource
This class implements the RetrievalSource interface with support for handling
content that resides in DuraStore as chunks.
- Author:
- Andrew Woods Date: 9/5/11
-
Field Summary
Fields inherited from class org.duracloud.retrieval.source.DuraStoreRetrievalSource
contentStore, currentContentList, currentSpaceId, spaceIds -
Constructor Summary
ConstructorsConstructorDescriptionDuraStoreStitchingRetrievalSource(ContentStore store, List<String> spaces, boolean allSpaces) -
Method Summary
Modifier and TypeMethodDescriptionprotected ContentdoGetContent(ContentItem item, RetrievalListener listener) protected ContentdoGetContentFromManifest(ContentItem item, RetrievalListener listener) Provides the next content item to be processed, cycles through all spaces as necessary.getSourceChecksum(ContentItem contentItem) Provides the checksum of the specified source file based on the file's properties.Methods inherited from class org.duracloud.retrieval.source.DuraStoreRetrievalSource
getNextSpace, getSourceContent, getSourceProperties, verifySpaceIdsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.duracloud.retrieval.source.RetrievalSource
getSourceContent
-
Constructor Details
-
DuraStoreStitchingRetrievalSource
public DuraStoreStitchingRetrievalSource(ContentStore store, List<String> spaces, boolean allSpaces)
-
-
Method Details
-
getNextContentItem
Description copied from interface:RetrievalSourceProvides the next content item to be processed, cycles through all spaces as necessary. Returns null when there are no further content ids to process.- Specified by:
getNextContentItemin interfaceRetrievalSource- Overrides:
getNextContentItemin classDuraStoreRetrievalSource- Returns:
- the next content item to be processed
-
getSourceChecksum
Description copied from interface:RetrievalSourceProvides the checksum of the specified source file based on the file's properties.- Specified by:
getSourceChecksumin interfaceRetrievalSource- Overrides:
getSourceChecksumin classDuraStoreRetrievalSource- Parameters:
contentItem- the file to consider- Returns:
- MD5 checksum of the given file
-
doGetContent
- Overrides:
doGetContentin classDuraStoreRetrievalSource
-
doGetContentFromManifest
-