Package 

Interface StageGraphBuilder


  • @Beta() 
    public interface StageGraphBuilder
    
                        

    Provides a low-level API for manipulating a stage DAG.

    • Method Detail

      • add

        @Nonnull() abstract StageExecution add(Consumer<StageExecution> init)

        Adds a new stage to the graph. By default the new stage is not dependent on any others. Use connect to make it depend on other stages or have other stages depend on it.

        Parameters:
        init - builder for setting up the stage.
      • add

         abstract void add(StageExecution stage)

        Adds a new stage to the graph. By default the new stage is not dependent on any others. Use connect to make it depend on other stages or have other stages depend on it.

      • connect

         abstract void connect(StageExecution previous, StageExecution next)

        Makes {@code next} depend on {@code previous} via its . If either {@code next} or {@code previous} are not yet present in the graph this method will add them.

      • append

        @Nonnull() abstract StageExecution append(Consumer<StageExecution> init)

        Adds a new stage to the graph and makes it depend on the last stage that was added if any.

        This is convenient for straightforward stage graphs to avoid having to pass around references to stages in order to use .

        If no stages have been added so far, this is synonymous with calling .

        Parameters:
        init - See