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 classARemoteEnvironmentwhich uses the defaultclose()behavior. -
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose().static RemoteEnvironmentforHandler(org.apache.beam.model.pipeline.v1.RunnerApi.Environment env, InstructionRequestHandler handler) Create a newRemoteEnvironmentfor the providedRunnerApi.EnvironmentandAutoCloseableInstructionRequestHandler.org.apache.beam.model.pipeline.v1.RunnerApi.EnvironmentReturn the environment that the remote handles.Return anInstructionRequestHandlerwhich can communicate with the environment.
-
Method Details
-
forHandler
static RemoteEnvironment forHandler(org.apache.beam.model.pipeline.v1.RunnerApi.Environment env, InstructionRequestHandler handler) Create a newRemoteEnvironmentfor the providedRunnerApi.EnvironmentandAutoCloseableInstructionRequestHandler.When the
RemoteEnvironmentis closed, theInstructionRequestHandlerwill be closed. -
getEnvironment
org.apache.beam.model.pipeline.v1.RunnerApi.Environment getEnvironment()Return the environment that the remote handles. -
getInstructionRequestHandler
InstructionRequestHandler getInstructionRequestHandler()Return anInstructionRequestHandlerwhich can communicate with the environment. -
close
.By default, closes the
getInstructionRequestHandler().- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-