Class DefaultJobBundleFactory
- java.lang.Object
-
- org.apache.beam.runners.fnexecution.control.DefaultJobBundleFactory
-
- All Implemented Interfaces:
AutoCloseable,org.apache.beam.runners.fnexecution.control.JobBundleFactory
@ThreadSafe public class DefaultJobBundleFactory extends Object implements org.apache.beam.runners.fnexecution.control.JobBundleFactory
AJobBundleFactoryfor which the implementation can specify a customEnvironmentFactoryfor environment management. Note that returnedstage bundle factoriesare not thread-safe. Instead, a new stage factory should be created for each client.DefaultJobBundleFactoryinitializes the Environment lazily when the forStage is called for a stage.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultJobBundleFactory.ServerInfoA container for EnvironmentFactory and its corresponding Grpc servers.protected static classDefaultJobBundleFactory.WrappedSdkHarnessClientHolder for anSdkHarnessClientalong with its associated state and data servers.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static DefaultJobBundleFactorycreate(org.apache.beam.runners.fnexecution.provisioning.JobInfo jobInfo)static DefaultJobBundleFactorycreate(org.apache.beam.runners.fnexecution.provisioning.JobInfo jobInfo, Map<String,org.apache.beam.runners.fnexecution.environment.EnvironmentFactory.Provider> environmentFactoryProviderMap)org.apache.beam.runners.fnexecution.control.StageBundleFactoryforStage(org.apache.beam.runners.core.construction.graph.ExecutableStage executableStage)
-
-
-
Method Detail
-
create
public static DefaultJobBundleFactory create(org.apache.beam.runners.fnexecution.provisioning.JobInfo jobInfo)
-
create
public static DefaultJobBundleFactory create(org.apache.beam.runners.fnexecution.provisioning.JobInfo jobInfo, Map<String,org.apache.beam.runners.fnexecution.environment.EnvironmentFactory.Provider> environmentFactoryProviderMap)
-
forStage
public org.apache.beam.runners.fnexecution.control.StageBundleFactory forStage(org.apache.beam.runners.core.construction.graph.ExecutableStage executableStage)
- Specified by:
forStagein interfaceorg.apache.beam.runners.fnexecution.control.JobBundleFactory
-
close
public void close() throws Exception- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
-