public class FnApiControlClientPoolService
extends org.apache.beam.model.fnexecution.v1.BeamFnControlGrpc.BeamFnControlImplBase
implements org.apache.beam.sdk.fn.server.FnService
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.beam.vendor.grpc.v1p43p2.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.InstructionResponse> |
control(org.apache.beam.vendor.grpc.v1p43p2.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.
|
void |
getProcessBundleDescriptor(org.apache.beam.model.fnexecution.v1.BeamFnApi.GetProcessBundleDescriptorRequest request,
org.apache.beam.vendor.grpc.v1p43p2.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.ProcessBundleDescriptor> responseObserver) |
static FnApiControlClientPoolService |
offeringClientsToPool(ControlClientPool.Sink clientPool,
org.apache.beam.sdk.fn.server.HeaderAccessor headerAccessor)
Creates a new
FnApiControlClientPoolService which will enqueue and vend new SDK harness
connections. |
bindServicepublic static FnApiControlClientPoolService offeringClientsToPool(ControlClientPool.Sink clientPool, org.apache.beam.sdk.fn.server.HeaderAccessor headerAccessor)
FnApiControlClientPoolService which will enqueue and vend new SDK harness
connections.
Clients placed into the clientSink are 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.
public org.apache.beam.vendor.grpc.v1p43p2.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.InstructionResponse> control(org.apache.beam.vendor.grpc.v1p43p2.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.InstructionRequest> requestObserver)
Note: currently does not distinguish what sort of SDK it is, so a separate instance is required for each.
control in class org.apache.beam.model.fnexecution.v1.BeamFnControlGrpc.BeamFnControlImplBasepublic void getProcessBundleDescriptor(org.apache.beam.model.fnexecution.v1.BeamFnApi.GetProcessBundleDescriptorRequest request,
org.apache.beam.vendor.grpc.v1p43p2.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.ProcessBundleDescriptor> responseObserver)
getProcessBundleDescriptor in class org.apache.beam.model.fnexecution.v1.BeamFnControlGrpc.BeamFnControlImplBasepublic void close()
close in interface java.lang.AutoCloseableclose in interface org.apache.beam.sdk.fn.server.FnService