public final class CrashingRunner extends PipelineRunner<PipelineResult>
PipelineRunner
that applies no overrides and throws an exception on calls to
Pipeline.run()
. For use in TestPipeline
to construct but not execute pipelines.Constructor and Description |
---|
CrashingRunner() |
Modifier and Type | Method and Description |
---|---|
static CrashingRunner |
fromOptions(PipelineOptions opts) |
PipelineResult |
run(Pipeline pipeline)
Processes the given
Pipeline , potentially asynchronously, returning a runner-specific
type of result. |
public static CrashingRunner fromOptions(PipelineOptions opts)
public PipelineResult run(Pipeline pipeline)
PipelineRunner
Pipeline
, potentially asynchronously, returning a runner-specific
type of result.run
in class PipelineRunner<PipelineResult>