public static class PipelineOptions.DirectRunner extends java.lang.Object implements DefaultValueFactory<java.lang.Class<? extends PipelineRunner<?>>>
DefaultValueFactory
that obtains the class of the DirectRunner
if it exists
on the classpath, and throws an exception otherwise.
As the DirectRunner
is in an independent module, it cannot be directly referenced as
the Default
. However, it should still be used if available, and a user is required to
explicitly set the --runner
property if they wish to use an alternative runner.
Constructor and Description |
---|
DirectRunner() |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<? extends PipelineRunner<?>> |
create(PipelineOptions options)
Creates a default value for a getter marked with
Default.InstanceFactory . |
public java.lang.Class<? extends PipelineRunner<?>> create(PipelineOptions options)
DefaultValueFactory
Default.InstanceFactory
.create
in interface DefaultValueFactory<java.lang.Class<? extends PipelineRunner<?>>>
options
- The current pipeline options.