Class CliPipelineRunner

java.lang.Object
nz.org.riskscape.engine.cli.pipeline.CliPipelineRunner

public class CliPipelineRunner extends Object

Has code for running the execution of a realized pipeline and sending the output etc to the right place. Factored out here for reuse from other commands

  • Field Details

  • Constructor Details

    • CliPipelineRunner

      public CliPipelineRunner(nz.org.riskscape.cli.Terminal terminal)
    • CliPipelineRunner

      public CliPipelineRunner(nz.org.riskscape.cli.Terminal terminal, Supplier<LocalDateTime> currentTime)
  • Method Details

    • createDirFriendlyTimestamp

      public static String createDirFriendlyTimestamp(LocalDateTime dateTime)
      Returns:
      a file system path friendly string that represents the given datetime.
    • run

      public void run(nz.org.riskscape.engine.pipeline.RealizedPipeline realized, nz.org.riskscape.engine.pipeline.PipelineExecutor executor, nz.org.riskscape.engine.Project useProject, CliPipelineRunner.Options options)
    • newDefaultOptions

      public CliPipelineRunner.Options newDefaultOptions(String outputName)
      Parameters:
      outputName -
      Returns: