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 classProvider of ExternalEnvironmentFactory. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExternalEnvironmentFactorycreate(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, activeRemoteEnvironmentbacked 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, activeRemoteEnvironmentbacked by an unmanaged worker.- Specified by:
createEnvironmentin interfaceEnvironmentFactory- Throws:
Exception
-