Package nz.org.riskscape.engine.output
Interface PipelineOutputStore
- All Superinterfaces:
Identified
Defines an output store that is able to store the results of pipeline execution, aka a pipeline job.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptioncreate(URI outputLocation, RealizedPipeline pipeline, PipelineOutputOptions options) Creates aPipelineOutputContainerto store outputs from executing the given pipeline.intisApplicable(URI outputLocation) Returns a score indicating if this store is able to create aPipelineOutputContainerfor the given URI.default PipelineOutputOptionsnewOutputOptions(String reference) Methods inherited from interface nz.org.riskscape.engine.Identified
getId, getIdentifiedClass
-
Field Details
-
PRIORITY_NA
static final int PRIORITY_NA- See Also:
-
PRIORITY_DEFAULT
static final int PRIORITY_DEFAULT- See Also:
-
PRIORITY_HIGH
static final int PRIORITY_HIGH- See Also:
-
-
Method Details
-
newOutputOptions
- Returns:
- a new
PipelineOutputOptionsobject suitable for use with this store. May contain defaults or extra settings specific to this store, or just be a defaultPipelineOutputOptionsobject.
-
isApplicable
Returns a score indicating if this store is able to create a
PipelineOutputContainerfor the given URI.Note that this method need only check that the URI can be handled by the store, i.e. it has a recognized scheme. By the same token , returning a value greater than zero does not mean
#create(URI, RealizedPipeline, MetricRegistry, PipelineOutputOptions)is guaranteed to return a successful result for the same URI.- Parameters:
outputLocation- a non-null user specified output location- Returns:
- a value greater than zero if a this store can handle the given URI.
-
create
ResultOrProblems<PipelineOutputContainer> create(URI outputLocation, RealizedPipeline pipeline, PipelineOutputOptions options) Creates a
PipelineOutputContainerto store outputs from executing the given pipeline.- Parameters:
outputLocation- URI indicating where outputs should be storedpipeline- the pipeline whose outputs are to be storedoptions- user-defined, pipeline-global options to customize how output is stored- Returns:
- a
PipelineOutputContaineror problems describing why it couldn't be created
-