public interface RemoteEnvironment
extends java.lang.AutoCloseable
RunnerApi.Environment. This environment is connected to a Fn API
Control service, and the associated client is available via getInstructionRequestHandler().| Modifier and Type | Interface and Description |
|---|---|
static class |
RemoteEnvironment.SimpleRemoteEnvironment
A
RemoteEnvironment which uses the default close() behavior. |
| Modifier and Type | Method and Description |
|---|---|
default void |
close()
.
|
static RemoteEnvironment |
forHandler(org.apache.beam.model.pipeline.v1.RunnerApi.Environment env,
InstructionRequestHandler handler)
Create a new
RemoteEnvironment for the provided RunnerApi.Environment and AutoCloseable InstructionRequestHandler. |
org.apache.beam.model.pipeline.v1.RunnerApi.Environment |
getEnvironment()
Return the environment that the remote handles.
|
InstructionRequestHandler |
getInstructionRequestHandler()
Return an
InstructionRequestHandler which can communicate with the environment. |
static RemoteEnvironment forHandler(org.apache.beam.model.pipeline.v1.RunnerApi.Environment env, InstructionRequestHandler handler)
RemoteEnvironment for the provided RunnerApi.Environment and AutoCloseable InstructionRequestHandler.
When the RemoteEnvironment is closed, the InstructionRequestHandler will be
closed.
org.apache.beam.model.pipeline.v1.RunnerApi.Environment getEnvironment()
InstructionRequestHandler getInstructionRequestHandler()
InstructionRequestHandler which can communicate with the environment.default void close()
throws java.lang.Exception
By default, closes the getInstructionRequestHandler().
close in interface java.lang.AutoCloseablejava.lang.Exception