|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.contentmanagement.baselayer.RawContentLocationSelectionStrategy
public abstract class RawContentLocationSelectionStrategy
The content selection strategy defines in case that more than one location exists, which one should be used to operate on content.
Constructor Summary | |
---|---|
RawContentLocationSelectionStrategy()
|
Method Summary | |
---|---|
abstract BaseLayerStream |
retrieveFromPreferredLocation(java.util.List<RawContentLocation> locations,
BasicStorageHints storageHints)
Retrieves content from a location based on the strategies preferences and the given hints. |
RawContentLocation |
saveAtPreferredLocation(java.lang.String objectID,
BaseLayerStream bls,
BasicStorageHints storageHints)
Saves content at a location, which is selected based on the strategies preferences and the given hints. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RawContentLocationSelectionStrategy()
Method Detail |
---|
public abstract BaseLayerStream retrieveFromPreferredLocation(java.util.List<RawContentLocation> locations, BasicStorageHints storageHints) throws BaseLayerException
It is up to te strategy, which hints it evaluates and which not.
locations
- the location available for the contentstorageHints
- the hints for selecting the location. All hints that have been
evaluated will be marked as consumed.
BaseLayerException
- if something goes wrongpublic RawContentLocation saveAtPreferredLocation(java.lang.String objectID, BaseLayerStream bls, BasicStorageHints storageHints) throws BaseLayerException
It is up to te strategy, which hints it evaluates and which not.
objectID
- a recommended ID suggested for storing. The strategy is free
to use this or come up with one of it's own.storageHints
- the hints for selecting the location. All hints that have been
evaluated will be marked as consumed.bls
- the stream containing the content that should be written.
BaseLayerException
- if something goes wrong
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |