Class StaticRemoteEnvironmentFactory
java.lang.Object
org.apache.beam.runners.fnexecution.environment.StaticRemoteEnvironmentFactory
- All Implemented Interfaces:
EnvironmentFactory
An
EnvironmentFactory
that creates StaticRemoteEnvironment used by a runner harness that
would like to use an existing InstructionRequestHandler.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Provider for StaticRemoteEnvironmentFactory. -
Method Summary
Modifier and TypeMethodDescriptioncreateEnvironment
(org.apache.beam.model.pipeline.v1.RunnerApi.Environment environment, String workerId) Creates an activeRunnerApi.Environment
and returns a handle to it.forService
(InstructionRequestHandler instructionRequestHandler)
-
Method Details
-
forService
public static StaticRemoteEnvironmentFactory forService(InstructionRequestHandler instructionRequestHandler) -
createEnvironment
public RemoteEnvironment createEnvironment(org.apache.beam.model.pipeline.v1.RunnerApi.Environment environment, String workerId) Description copied from interface:EnvironmentFactory
Creates an activeRunnerApi.Environment
and returns a handle to it.- Specified by:
createEnvironment
in interfaceEnvironmentFactory
-