Package nz.org.riskscape.engine.output
Interface PipelineOutputStores
- All Superinterfaces:
IdentifiedCollection<PipelineOutputStore>
-
Nested Class Summary
Nested classes/interfaces inherited from interface nz.org.riskscape.engine.IdentifiedCollection
IdentifiedCollection.Base<T extends Identified>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ResultOrProblems<PipelineOutputContainer>
create
(URI uri, RealizedPipeline pipeline, Function<PipelineOutputStore, PipelineOutputOptions> customizeOptions) Create a new container for storing pipeline resultsgetStoreForURI
(URI uri) Find a store capable of writing to the given URIMethods inherited from interface nz.org.riskscape.engine.IdentifiedCollection
add, add, add, addAll, addAll, clear, containsKey, get, get, getAll, getAllProblems, getCollectionClass, getOr, getReferences, getResult, getSimilarIds, isEmpty, remove
-
Method Details
-
getStoreForURI
Find a store capable of writing to the given URI
- Parameters:
uri
- the location we want to store results at- Returns:
- a
PipelineOutputStore
that should be able to write to the given URI, or a stanard error message problem if no output stores support theURI
-
create
default ResultOrProblems<PipelineOutputContainer> create(URI uri, RealizedPipeline pipeline, Function<PipelineOutputStore, PipelineOutputOptions> customizeOptions) Create a new container for storing pipeline results
- Parameters:
uri
- the location we want to store results atpipeline
- the pipeline that we will be storing results forcustomizeOptions
- a function for creating and customizing thePipelineOutputOptions
used for storing pipeline results. SeePipelineOutputStore.newOutputOptions(String)
for more info.- Returns:
- a
PipelineOutputContainer
that can be used for storing results for the given pipeline, or a problem if it couldn't be created.
-