Interface ExecutionContext
- All Superinterfaces:
AutoCloseable
Various bits associated with the realization and execution of a pipeline
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes the execution context and removes any temporary resources created within it.createNestedContext
(String name) com.codahale.metrics.MetricRegistry
default RealizationContext
Returns aRealizationContext
bound to theExecutionContext
for use when realizing expressions for use within thisExecutionContext
.default RealizedPipeline
Convenience 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:
close
in interfaceAutoCloseable
-
getRealizationContext
Returns a
RealizationContext
bound to theExecutionContext
for 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.
-
realize
Convenience method for realizing a pipeline using this
ExecutionContext
. SeePipelineExecutor.realize(ExecutionContext, Pipeline)
for more details.
-