public class ProcessEnvironment extends java.lang.Object implements RemoteEnvironment
RemoteEnvironment.SimpleRemoteEnvironment| Modifier and Type | Method and Description |
|---|---|
void |
close()
.
|
static RemoteEnvironment |
create(ProcessManager processManager,
org.apache.beam.model.pipeline.v1.RunnerApi.Environment environment,
java.lang.String workerId,
InstructionRequestHandler instructionHandler) |
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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforHandlerpublic static RemoteEnvironment create(ProcessManager processManager, org.apache.beam.model.pipeline.v1.RunnerApi.Environment environment, java.lang.String workerId, InstructionRequestHandler instructionHandler)
public org.apache.beam.model.pipeline.v1.RunnerApi.Environment getEnvironment()
RemoteEnvironmentgetEnvironment in interface RemoteEnvironmentpublic InstructionRequestHandler getInstructionRequestHandler()
RemoteEnvironmentInstructionRequestHandler which can communicate with the environment.getInstructionRequestHandler in interface RemoteEnvironmentpublic void close()
throws java.lang.Exception
RemoteEnvironmentBy default, closes the RemoteEnvironment.getInstructionRequestHandler().
close in interface java.lang.AutoCloseableclose in interface RemoteEnvironmentjava.lang.Exception