Class CliPipelineRunner
java.lang.Object
nz.org.riskscape.engine.cli.pipeline.CliPipelineRunner
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
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCliPipelineRunner
(nz.org.riskscape.cli.Terminal terminal) CliPipelineRunner
(nz.org.riskscape.cli.Terminal terminal, Supplier<LocalDateTime> currentTime) -
Method Summary
Modifier and TypeMethodDescriptionstatic String
createDirFriendlyTimestamp
(LocalDateTime dateTime) newDefaultOptions
(String outputName) 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)
-
Field Details
-
MONITOR_PROGRESS_DEFAULT
- See Also:
-
-
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
- 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
- Parameters:
outputName
-- Returns:
-