public class StaticRemoteEnvironmentFactory extends java.lang.Object implements EnvironmentFactory
EnvironmentFactory
that creates StaticRemoteEnvironment used by a runner harness that
would like to use an existing InstructionRequestHandler.Modifier and Type | Class and Description |
---|---|
static class |
StaticRemoteEnvironmentFactory.Provider
Provider for StaticRemoteEnvironmentFactory.
|
Modifier and Type | Method and Description |
---|---|
RemoteEnvironment |
createEnvironment(org.apache.beam.model.pipeline.v1.RunnerApi.Environment environment,
java.lang.String workerId)
Creates an active
RunnerApi.Environment and returns a handle to it. |
static StaticRemoteEnvironmentFactory |
forService(InstructionRequestHandler instructionRequestHandler) |
public static StaticRemoteEnvironmentFactory forService(InstructionRequestHandler instructionRequestHandler)
public RemoteEnvironment createEnvironment(org.apache.beam.model.pipeline.v1.RunnerApi.Environment environment, java.lang.String workerId)
EnvironmentFactory
RunnerApi.Environment
and returns a handle to it.createEnvironment
in interface EnvironmentFactory