public class DockerEnvironmentFactory extends java.lang.Object implements EnvironmentFactory
EnvironmentFactory
that creates docker containers by shelling out to docker. Returned
RemoteEnvironments
own their respective docker containers. Not
thread-safe.Modifier and Type | Method and Description |
---|---|
RemoteEnvironment |
createEnvironment(org.apache.beam.model.pipeline.v1.RunnerApi.Environment environment)
Creates a new, active
RemoteEnvironment backed by a local Docker container. |
static DockerEnvironmentFactory |
forServices(GrpcFnServer<FnApiControlClientPoolService> controlServiceServer,
GrpcFnServer<GrpcLoggingService> loggingServiceServer,
GrpcFnServer<ArtifactRetrievalService> retrievalServiceServer,
GrpcFnServer<StaticGrpcProvisionService> provisioningServiceServer,
ControlClientPool.Source clientSource,
IdGenerator idGenerator)
|
public static DockerEnvironmentFactory forServices(GrpcFnServer<FnApiControlClientPoolService> controlServiceServer, GrpcFnServer<GrpcLoggingService> loggingServiceServer, GrpcFnServer<ArtifactRetrievalService> retrievalServiceServer, GrpcFnServer<StaticGrpcProvisionService> provisioningServiceServer, ControlClientPool.Source clientSource, IdGenerator idGenerator)
public RemoteEnvironment createEnvironment(org.apache.beam.model.pipeline.v1.RunnerApi.Environment environment) throws java.lang.Exception
RemoteEnvironment
backed by a local Docker container.createEnvironment
in interface EnvironmentFactory
java.lang.Exception