public class InProcessEnvironmentFactory extends java.lang.Object implements EnvironmentFactory
EnvironmentFactory
that communicates to a FnHarness
which is executing in the
same process.Modifier and Type | Method and Description |
---|---|
static EnvironmentFactory |
create(PipelineOptions options,
GrpcFnServer<GrpcLoggingService> loggingServer,
GrpcFnServer<FnApiControlClientPoolService> controlServer,
ControlClientPool.Source clientSource) |
RemoteEnvironment |
createEnvironment(org.apache.beam.model.pipeline.v1.RunnerApi.Environment container)
Creates an active
RunnerApi.Environment and returns a handle to it. |
public static EnvironmentFactory create(PipelineOptions options, GrpcFnServer<GrpcLoggingService> loggingServer, GrpcFnServer<FnApiControlClientPoolService> controlServer, ControlClientPool.Source clientSource)
public RemoteEnvironment createEnvironment(org.apache.beam.model.pipeline.v1.RunnerApi.Environment container) throws java.lang.Exception
EnvironmentFactory
RunnerApi.Environment
and returns a handle to it.createEnvironment
in interface EnvironmentFactory
java.lang.Exception