Package nz.org.riskscape.engine.pipeline
Interface ExecutionContext
- All Superinterfaces:
AutoCloseable
Various bits associated with the realization and execution of a pipeline
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the execution context and removes any temporary resources created within it.createNestedContext(String name) com.codahale.metrics.MetricRegistrydefault RealizationContextReturns aRealizationContextbound to theExecutionContextfor use when realizing expressions for use within thisExecutionContext.default RealizedPipelineConvenience method for realizing a pipeline using thisExecutionContext.
-
Method Details
-
getEngine
Engine getEngine() -
getProject
Project getProject() -
getExpressionRealizer
ExpressionRealizer getExpressionRealizer() -
getBindingContext
BindingContext getBindingContext() -
getMetricRegistry
com.codahale.metrics.MetricRegistry getMetricRegistry() -
getPipelineExecutor
PipelineExecutor getPipelineExecutor() -
createNestedContext
-
getTempDirectory
Path getTempDirectory()- Returns:
- a directory that can be used for temporary files for the duration of this execution context.
-
close
void close()Closes the execution context and removes any temporary resources created within it.
- Specified by:
closein interfaceAutoCloseable
-
getRealizationContext
Returns a
RealizationContextbound to theExecutionContextfor use when realizing expressions for use within thisExecutionContext.At the moment, this is just a handy accessor, but in the future, any resources used or created during realization might be managed or dependent on the execution context, so in time we want to make sure that any expressions realized for use within a pipeline use this context, instead of creating their own 'one off' context object.
-
getPipelineRealizer
PipelineRealizer getPipelineRealizer()- Returns:
- a PipelineRealizer that can be used to realize a pipeline.
-
realize
Convenience method for realizing a pipeline using this
ExecutionContext. SeePipelineRealizerfor more details
-