Class EmbeddedEnvironmentFactory
- java.lang.Object
-
- org.apache.beam.runners.fnexecution.environment.EmbeddedEnvironmentFactory
-
- All Implemented Interfaces:
EnvironmentFactory
public class EmbeddedEnvironmentFactory extends java.lang.Object implements EnvironmentFactory
AnEnvironmentFactorythat communicates to aFnHarnesswhich is executing in the same process.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEmbeddedEnvironmentFactory.ProviderProvider of EmbeddedEnvironmentFactory.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EnvironmentFactorycreate(org.apache.beam.sdk.options.PipelineOptions options, org.apache.beam.sdk.fn.server.GrpcFnServer<GrpcLoggingService> loggingServer, org.apache.beam.sdk.fn.server.GrpcFnServer<FnApiControlClientPoolService> controlServer, ControlClientPool.Source clientSource)RemoteEnvironmentcreateEnvironment(org.apache.beam.model.pipeline.v1.RunnerApi.Environment environment, java.lang.String workerId)Creates an activeRunnerApi.Environmentand returns a handle to it.
-
-
-
Method Detail
-
create
public static EnvironmentFactory create(org.apache.beam.sdk.options.PipelineOptions options, org.apache.beam.sdk.fn.server.GrpcFnServer<GrpcLoggingService> loggingServer, org.apache.beam.sdk.fn.server.GrpcFnServer<FnApiControlClientPoolService> controlServer, ControlClientPool.Source clientSource)
-
createEnvironment
public RemoteEnvironment createEnvironment(org.apache.beam.model.pipeline.v1.RunnerApi.Environment environment, java.lang.String workerId) throws java.lang.Exception
Description copied from interface:EnvironmentFactoryCreates an activeRunnerApi.Environmentand returns a handle to it.- Specified by:
createEnvironmentin interfaceEnvironmentFactory- Throws:
java.lang.Exception
-
-