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, wait
forHandler
public 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()
RemoteEnvironment
getEnvironment
in interface RemoteEnvironment
public InstructionRequestHandler getInstructionRequestHandler()
RemoteEnvironment
InstructionRequestHandler
which can communicate with the environment.getInstructionRequestHandler
in interface RemoteEnvironment
public void close() throws java.lang.Exception
RemoteEnvironment
By default, closes the RemoteEnvironment.getInstructionRequestHandler()
.
close
in interface java.lang.AutoCloseable
close
in interface RemoteEnvironment
java.lang.Exception