@ThreadSafe public class DockerJobBundleFactory extends java.lang.Object implements JobBundleFactory
JobBundleFactory that uses a DockerEnvironmentFactory for environment
management. Note that returned stage bundle factories are not
thread-safe. Instead, a new stage factory should be created for each client.| Modifier and Type | Class and Description |
|---|---|
static interface |
DockerJobBundleFactory.JobBundleFactoryFactory
Factory that creates
JobBundleFactory for the given JobInfo. |
| Modifier and Type | Field and Description |
|---|---|
static java.util.concurrent.atomic.AtomicReference<DockerJobBundleFactory.JobBundleFactoryFactory> |
FACTORY |
| Modifier | Constructor and Description |
|---|---|
protected |
DockerJobBundleFactory(JobInfo jobInfo) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static DockerJobBundleFactory |
create(JobInfo jobInfo) |
StageBundleFactory |
forStage(org.apache.beam.runners.core.construction.graph.ExecutableStage executableStage) |
protected EnvironmentFactory |
getEnvironmentFactory(GrpcFnServer<FnApiControlClientPoolService> controlServiceServer,
GrpcFnServer<GrpcLoggingService> loggingServiceServer,
GrpcFnServer<ArtifactRetrievalService> retrievalServiceServer,
GrpcFnServer<StaticGrpcProvisionService> provisioningServiceServer,
ControlClientPool.Source clientSource,
IdGenerator idGenerator)
Create
EnvironmentFactory for the given services. |
protected ServerFactory |
getServerFactory() |
public static final java.util.concurrent.atomic.AtomicReference<DockerJobBundleFactory.JobBundleFactoryFactory> FACTORY
protected DockerJobBundleFactory(JobInfo jobInfo) throws java.lang.Exception
java.lang.Exceptionpublic static DockerJobBundleFactory create(JobInfo jobInfo) throws java.lang.Exception
java.lang.Exceptionpublic StageBundleFactory forStage(org.apache.beam.runners.core.construction.graph.ExecutableStage executableStage)
forStage in interface JobBundleFactorypublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionprotected ServerFactory getServerFactory()
protected EnvironmentFactory getEnvironmentFactory(GrpcFnServer<FnApiControlClientPoolService> controlServiceServer, GrpcFnServer<GrpcLoggingService> loggingServiceServer, GrpcFnServer<ArtifactRetrievalService> retrievalServiceServer, GrpcFnServer<StaticGrpcProvisionService> provisioningServiceServer, ControlClientPool.Source clientSource, IdGenerator idGenerator)
EnvironmentFactory for the given services.