Class EmbeddedEnvironmentFactory
java.lang.Object
org.apache.beam.runners.fnexecution.environment.EmbeddedEnvironmentFactory
- All Implemented Interfaces:
EnvironmentFactory
An
EnvironmentFactory
that communicates to a FnHarness
which is executing in the
same process.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Provider of EmbeddedEnvironmentFactory. -
Method Summary
Modifier and TypeMethodDescriptionstatic EnvironmentFactory
create
(PipelineOptions options, GrpcFnServer<GrpcLoggingService> loggingServer, GrpcFnServer<FnApiControlClientPoolService> controlServer, ControlClientPool.Source clientSource) createEnvironment
(org.apache.beam.model.pipeline.v1.RunnerApi.Environment environment, String workerId) Creates an activeRunnerApi.Environment
and returns a handle to it.
-
Method Details
-
create
public static EnvironmentFactory create(PipelineOptions options, GrpcFnServer<GrpcLoggingService> loggingServer, GrpcFnServer<FnApiControlClientPoolService> controlServer, ControlClientPool.Source clientSource) -
createEnvironment
public RemoteEnvironment createEnvironment(org.apache.beam.model.pipeline.v1.RunnerApi.Environment environment, String workerId) throws Exception Description copied from interface:EnvironmentFactory
Creates an activeRunnerApi.Environment
and returns a handle to it.- Specified by:
createEnvironment
in interfaceEnvironmentFactory
- Throws:
Exception
-