Class DockerEnvironmentFactory
- java.lang.Object
-
- org.apache.beam.runners.fnexecution.environment.DockerEnvironmentFactory
-
- All Implemented Interfaces:
EnvironmentFactory
public class DockerEnvironmentFactory extends java.lang.Object implements EnvironmentFactory
AnEnvironmentFactorythat creates docker containers by shelling out to docker. ReturnedRemoteEnvironmentsown their respective docker containers. Not thread-safe.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDockerEnvironmentFactory.ProviderProvider for DockerEnvironmentFactory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RemoteEnvironmentcreateEnvironment(org.apache.beam.model.pipeline.v1.RunnerApi.Environment environment, java.lang.String workerId)Creates a new, activeRemoteEnvironmentbacked by a local Docker container.
-
-
-
Method Detail
-
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 a local Docker container.- Specified by:
createEnvironmentin interfaceEnvironmentFactory- Throws:
java.lang.Exception
-
-