Class DockerEnvironmentFactory
java.lang.Object
org.apache.beam.runners.fnexecution.environment.DockerEnvironmentFactory
- All Implemented Interfaces:
EnvironmentFactory
An
EnvironmentFactory
that creates docker containers by shelling out to docker. Returned
RemoteEnvironments
own their respective docker containers. Not
thread-safe.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Provider for DockerEnvironmentFactory. -
Method Summary
Modifier and TypeMethodDescriptioncreateEnvironment
(org.apache.beam.model.pipeline.v1.RunnerApi.Environment environment, String workerId) Creates a new, activeRemoteEnvironment
backed by a local Docker container.
-
Method Details
-
createEnvironment
public RemoteEnvironment createEnvironment(org.apache.beam.model.pipeline.v1.RunnerApi.Environment environment, String workerId) throws Exception Creates a new, activeRemoteEnvironment
backed by a local Docker container.- Specified by:
createEnvironment
in interfaceEnvironmentFactory
- Throws:
Exception
-