Interface RemoteEnvironment
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
ProcessEnvironment
,RemoteEnvironment.SimpleRemoteEnvironment
,StaticRemoteEnvironment
A handle to an available remote
RunnerApi.Environment
. This environment is connected to a Fn API
Control service, and the associated client is available via getInstructionRequestHandler()
.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
ARemoteEnvironment
which uses the defaultclose()
behavior. -
Method Summary
Modifier and TypeMethodDescriptiondefault void
close()
.static RemoteEnvironment
forHandler
(org.apache.beam.model.pipeline.v1.RunnerApi.Environment env, InstructionRequestHandler handler) Create a newRemoteEnvironment
for the providedRunnerApi.Environment
andAutoCloseable
InstructionRequestHandler
.org.apache.beam.model.pipeline.v1.RunnerApi.Environment
Return the environment that the remote handles.Return anInstructionRequestHandler
which can communicate with the environment.
-
Method Details
-
forHandler
static RemoteEnvironment forHandler(org.apache.beam.model.pipeline.v1.RunnerApi.Environment env, InstructionRequestHandler handler) Create a newRemoteEnvironment
for the providedRunnerApi.Environment
andAutoCloseable
InstructionRequestHandler
.When the
RemoteEnvironment
is closed, theInstructionRequestHandler
will be closed. -
getEnvironment
org.apache.beam.model.pipeline.v1.RunnerApi.Environment getEnvironment()Return the environment that the remote handles. -
getInstructionRequestHandler
InstructionRequestHandler getInstructionRequestHandler()Return anInstructionRequestHandler
which can communicate with the environment. -
close
.By default, closes the
getInstructionRequestHandler()
.- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-