Interface ExecutionContext

All Superinterfaces:
AutoCloseable

public interface ExecutionContext extends AutoCloseable

Various bits associated with the realization and execution of a pipeline

  • Method Details

    • getEngine

      Engine getEngine()
    • getProject

      Project getProject()
    • getExpressionRealizer

      ExpressionRealizer getExpressionRealizer()
    • getBindingContext

      BindingContext getBindingContext()
    • getMetricRegistry

      com.codahale.metrics.MetricRegistry getMetricRegistry()
    • getPipelineExecutor

      PipelineExecutor getPipelineExecutor()
    • createNestedContext

      ExecutionContext createNestedContext(String name)
    • 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 interface AutoCloseable
    • getRealizationContext

      default RealizationContext getRealizationContext()

      Returns a RealizationContext bound to the ExecutionContext for use when realizing expressions for use within this ExecutionContext.

      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

      default RealizedPipeline realize(Pipeline pipeline)

      Convenience method for realizing a pipeline using this ExecutionContext. See PipelineExecutor.realize(ExecutionContext, Pipeline) for more details.