Class ProcessEnvironment
- java.lang.Object
-
- org.apache.beam.runners.fnexecution.environment.ProcessEnvironment
-
- All Implemented Interfaces:
java.lang.AutoCloseable,RemoteEnvironment
public class ProcessEnvironment extends java.lang.Object implements RemoteEnvironment
Environment for process-based execution. The environment is responsible for stopping the process.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.beam.runners.fnexecution.environment.RemoteEnvironment
RemoteEnvironment.SimpleRemoteEnvironment
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose().static RemoteEnvironmentcreate(ProcessManager processManager, org.apache.beam.model.pipeline.v1.RunnerApi.Environment environment, java.lang.String workerId, InstructionRequestHandler instructionHandler)org.apache.beam.model.pipeline.v1.RunnerApi.EnvironmentgetEnvironment()Return the environment that the remote handles.InstructionRequestHandlergetInstructionRequestHandler()Return anInstructionRequestHandlerwhich can communicate with the environment.
-
-
-
Method Detail
-
create
public static RemoteEnvironment create(ProcessManager processManager, org.apache.beam.model.pipeline.v1.RunnerApi.Environment environment, java.lang.String workerId, InstructionRequestHandler instructionHandler)
-
getEnvironment
public org.apache.beam.model.pipeline.v1.RunnerApi.Environment getEnvironment()
Description copied from interface:RemoteEnvironmentReturn the environment that the remote handles.- Specified by:
getEnvironmentin interfaceRemoteEnvironment
-
getInstructionRequestHandler
public InstructionRequestHandler getInstructionRequestHandler()
Description copied from interface:RemoteEnvironmentReturn anInstructionRequestHandlerwhich can communicate with the environment.- Specified by:
getInstructionRequestHandlerin interfaceRemoteEnvironment
-
close
public void close() throws java.lang.ExceptionDescription copied from interface:RemoteEnvironment.By default, closes the
RemoteEnvironment.getInstructionRequestHandler().- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceRemoteEnvironment- Throws:
java.lang.Exception
-
-