Class FnApiControlClientPoolService
- java.lang.Object
-
- org.apache.beam.model.fnexecution.v1.BeamFnControlGrpc.BeamFnControlImplBase
-
- org.apache.beam.runners.fnexecution.control.FnApiControlClientPoolService
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.apache.beam.model.fnexecution.v1.BeamFnControlGrpc.AsyncService,org.apache.beam.sdk.fn.server.FnService,org.apache.beam.vendor.grpc.v1p69p0.io.grpc.BindableService
public class FnApiControlClientPoolService extends org.apache.beam.model.fnexecution.v1.BeamFnControlGrpc.BeamFnControlImplBase implements org.apache.beam.sdk.fn.server.FnServiceA Fn API control service which adds incoming SDK harness connections to a sink.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()org.apache.beam.vendor.grpc.v1p69p0.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.InstructionResponse>control(org.apache.beam.vendor.grpc.v1p69p0.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.InstructionRequest> requestObserver)Called by gRPC for each incoming connection from an SDK harness, and enqueue an available SDK harness client.voidgetProcessBundleDescriptor(org.apache.beam.model.fnexecution.v1.BeamFnApi.GetProcessBundleDescriptorRequest request, org.apache.beam.vendor.grpc.v1p69p0.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.ProcessBundleDescriptor> responseObserver)static FnApiControlClientPoolServiceofferingClientsToPool(ControlClientPool.Sink clientPool, org.apache.beam.sdk.fn.server.HeaderAccessor headerAccessor)Creates a newFnApiControlClientPoolServicewhich will enqueue and vend new SDK harness connections.-
Methods inherited from class org.apache.beam.model.fnexecution.v1.BeamFnControlGrpc.BeamFnControlImplBase
bindService
-
-
-
-
Method Detail
-
offeringClientsToPool
public static FnApiControlClientPoolService offeringClientsToPool(ControlClientPool.Sink clientPool, org.apache.beam.sdk.fn.server.HeaderAccessor headerAccessor)
Creates a newFnApiControlClientPoolServicewhich will enqueue and vend new SDK harness connections.Clients placed into the
clientSinkare owned by whoever consumes them from the other end of the pool. That consumer is responsible for closing the clients when they are no longer needed.
-
control
public org.apache.beam.vendor.grpc.v1p69p0.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.InstructionResponse> control(org.apache.beam.vendor.grpc.v1p69p0.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.InstructionRequest> requestObserver)
Called by gRPC for each incoming connection from an SDK harness, and enqueue an available SDK harness client.Note: currently does not distinguish what sort of SDK it is, so a separate instance is required for each.
- Specified by:
controlin interfaceorg.apache.beam.model.fnexecution.v1.BeamFnControlGrpc.AsyncService
-
getProcessBundleDescriptor
public void getProcessBundleDescriptor(org.apache.beam.model.fnexecution.v1.BeamFnApi.GetProcessBundleDescriptorRequest request, org.apache.beam.vendor.grpc.v1p69p0.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.ProcessBundleDescriptor> responseObserver)- Specified by:
getProcessBundleDescriptorin interfaceorg.apache.beam.model.fnexecution.v1.BeamFnControlGrpc.AsyncService
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceorg.apache.beam.sdk.fn.server.FnService
-
-