Class ExternalEnvironmentFactory
java.lang.Object
org.apache.beam.runners.fnexecution.environment.ExternalEnvironmentFactory
- All Implemented Interfaces:
EnvironmentFactory
An
EnvironmentFactory
which requests workers via the given URL in the Environment.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Provider of ExternalEnvironmentFactory. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExternalEnvironmentFactory
create
(GrpcFnServer<FnApiControlClientPoolService> controlServiceServer, GrpcFnServer<GrpcLoggingService> loggingServiceServer, GrpcFnServer<ArtifactRetrievalService> retrievalServiceServer, GrpcFnServer<StaticGrpcProvisionService> provisioningServiceServer, ControlClientPool.Source clientSource, IdGenerator idGenerator) createEnvironment
(org.apache.beam.model.pipeline.v1.RunnerApi.Environment environment, String workerId) Creates a new, activeRemoteEnvironment
backed by an unmanaged worker.
-
Method Details
-
create
public static ExternalEnvironmentFactory create(GrpcFnServer<FnApiControlClientPoolService> controlServiceServer, GrpcFnServer<GrpcLoggingService> loggingServiceServer, GrpcFnServer<ArtifactRetrievalService> retrievalServiceServer, GrpcFnServer<StaticGrpcProvisionService> provisioningServiceServer, ControlClientPool.Source clientSource, IdGenerator idGenerator) -
createEnvironment
public RemoteEnvironment createEnvironment(org.apache.beam.model.pipeline.v1.RunnerApi.Environment environment, String workerId) throws Exception Creates a new, activeRemoteEnvironment
backed by an unmanaged worker.- Specified by:
createEnvironment
in interfaceEnvironmentFactory
- Throws:
Exception
-