Class DefaultJobBundleFactory
java.lang.Object
org.apache.beam.runners.fnexecution.control.DefaultJobBundleFactory
- All Implemented Interfaces:
AutoCloseable
,JobBundleFactory
A
JobBundleFactory
for which the implementation can specify a custom EnvironmentFactory
for environment management. Note that returned stage bundle factories
are not thread-safe. Instead, a new stage factory should be created for
each client. DefaultJobBundleFactory
initializes the Environment lazily when the forStage
is called for a stage.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A container for EnvironmentFactory and its corresponding Grpc servers.protected static class
Holder for anSdkHarnessClient
along with its associated state and data servers. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
static DefaultJobBundleFactory
static DefaultJobBundleFactory
create
(JobInfo jobInfo, Map<String, EnvironmentFactory.Provider> environmentFactoryProviderMap) forStage
(org.apache.beam.sdk.util.construction.graph.ExecutableStage executableStage)
-
Method Details
-
create
-
create
public static DefaultJobBundleFactory create(JobInfo jobInfo, Map<String, EnvironmentFactory.Provider> environmentFactoryProviderMap) -
forStage
public StageBundleFactory forStage(org.apache.beam.sdk.util.construction.graph.ExecutableStage executableStage) - Specified by:
forStage
in interfaceJobBundleFactory
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-