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.default ExpressionRealizercom.codahale.metrics.MetricRegistryReturns aRealizationContextbound to theExecutionContextfor use when realizing expressions for use within thisExecutionContext.default RealizedPipelineConvenience method for realizing a pipeline with no parameters using thisExecutionContext.default RealizedPipelinerealize(PipelineDeclaration ast, Map<String, Expression> pipelineParameters) Convenience method for realizing a pipeline with parameters using thisExecutionContext.
-
Method Details
-
getEngine
Engine getEngine() -
getProject
Project getProject() -
getExpressionRealizer
-
getBindingContext
BindingContext getBindingContext() -
getMetricRegistry
com.codahale.metrics.MetricRegistry getMetricRegistry() -
getPipelineExecutor
PipelineExecutor getPipelineExecutor() -
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
RealizationContext 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
default RealizedPipeline realize(PipelineDeclaration ast, Map<String, Expression> pipelineParameters) Convenience method for realizing a pipeline with parameters using this
ExecutionContext. SeePipelineRealizerfor more details -
realize
Convenience method for realizing a pipeline with no parameters using this
ExecutionContext. SeePipelineRealizerfor more details -
getProblemSink
ProblemSink getProblemSink()- Returns:
- a
ProblemSinkto direct any warnings encountered
-
getOriginalContext
ExecutionContext getOriginalContext()- Returns:
- the original execution context that this one is based on (in the case of wrapped contexts)
-