Package org.duracloud.retrieval.source
Class DuraStoreRetrievalSource
java.lang.Object
org.duracloud.retrieval.source.DuraStoreRetrievalSource
- All Implemented Interfaces:
RetrievalSource
- Direct Known Subclasses:
DuraStoreStitchingRetrievalSource
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDuraStoreRetrievalSource(ContentStore store, List<String> spaces, boolean allSpaces) -
Method Summary
Modifier and TypeMethodDescriptionprotected ContentdoGetContent(ContentItem contentItem, RetrievalListener listener) Provides the next content item to be processed, cycles through all spaces as necessary.protected voidgetSourceChecksum(ContentItem contentItem) Provides the checksum of the specified source file based on the file's properties.getSourceContent(ContentItem contentItem, RetrievalListener listener) Get the actual content using a retrieval listener callback.getSourceProperties(ContentItem contentItem) Retrieves the Duracloud properties for the specified ContentItem.verifySpaceIds(List<String> spaces) Methods 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
-
Field Details
-
contentStore
-
spaceIds
-
currentSpaceId
-
currentContentList
-
-
Constructor Details
-
DuraStoreRetrievalSource
-
-
Method Details
-
verifySpaceIds
- Throws:
RuntimeException
-
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- Returns:
- the next content item to be processed
-
getNextSpace
protected void getNextSpace() -
getSourceProperties
Description copied from interface:RetrievalSourceRetrieves the Duracloud properties for the specified ContentItem.- Specified by:
getSourcePropertiesin interfaceRetrievalSource- Parameters:
contentItem- the file whose properties to retrieve- Returns:
- the Map of Duracloud properties
-
getSourceChecksum
Description copied from interface:RetrievalSourceProvides the checksum of the specified source file based on the file's properties.- Specified by:
getSourceChecksumin interfaceRetrievalSource- Parameters:
contentItem- the file to consider- Returns:
- MD5 checksum of the given file
-
getSourceContent
Description copied from interface:RetrievalSourceGet the actual content using a retrieval listener callback. The listener should be called synchronously.- Specified by:
getSourceContentin interfaceRetrievalSource- Parameters:
contentItem- the file to retrievelistener- of the specified operation- Returns:
-
doGetContent
-