Class ExternalEnvironmentFactory
- java.lang.Object
-
- org.apache.beam.runners.fnexecution.environment.ExternalEnvironmentFactory
-
- All Implemented Interfaces:
EnvironmentFactory
public class ExternalEnvironmentFactory extends java.lang.Object implements EnvironmentFactory
AnEnvironmentFactorywhich requests workers via the given URL in the Environment.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExternalEnvironmentFactory.ProviderProvider of ExternalEnvironmentFactory.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExternalEnvironmentFactorycreate(org.apache.beam.sdk.fn.server.GrpcFnServer<FnApiControlClientPoolService> controlServiceServer, org.apache.beam.sdk.fn.server.GrpcFnServer<GrpcLoggingService> loggingServiceServer, org.apache.beam.sdk.fn.server.GrpcFnServer<ArtifactRetrievalService> retrievalServiceServer, org.apache.beam.sdk.fn.server.GrpcFnServer<StaticGrpcProvisionService> provisioningServiceServer, ControlClientPool.Source clientSource, org.apache.beam.sdk.fn.IdGenerator idGenerator)RemoteEnvironmentcreateEnvironment(org.apache.beam.model.pipeline.v1.RunnerApi.Environment environment, java.lang.String workerId)Creates a new, activeRemoteEnvironmentbacked by an unmanaged worker.
-
-
-
Method Detail
-
create
public static ExternalEnvironmentFactory create(org.apache.beam.sdk.fn.server.GrpcFnServer<FnApiControlClientPoolService> controlServiceServer, org.apache.beam.sdk.fn.server.GrpcFnServer<GrpcLoggingService> loggingServiceServer, org.apache.beam.sdk.fn.server.GrpcFnServer<ArtifactRetrievalService> retrievalServiceServer, org.apache.beam.sdk.fn.server.GrpcFnServer<StaticGrpcProvisionService> provisioningServiceServer, ControlClientPool.Source clientSource, org.apache.beam.sdk.fn.IdGenerator idGenerator)
-
createEnvironment
public RemoteEnvironment createEnvironment(org.apache.beam.model.pipeline.v1.RunnerApi.Environment environment, java.lang.String workerId) throws java.lang.Exception
Creates a new, activeRemoteEnvironmentbacked by an unmanaged worker.- Specified by:
createEnvironmentin interfaceEnvironmentFactory- Throws:
java.lang.Exception
-
-