Class StaticGrpcProvisionService
java.lang.Object
org.apache.beam.model.fnexecution.v1.ProvisionServiceGrpc.ProvisionServiceImplBase
org.apache.beam.runners.fnexecution.provisioning.StaticGrpcProvisionService
- All Implemented Interfaces:
AutoCloseable,org.apache.beam.model.fnexecution.v1.ProvisionServiceGrpc.AsyncService,FnService,org.apache.beam.vendor.grpc.v1p69p0.io.grpc.BindableService
public class StaticGrpcProvisionService
extends org.apache.beam.model.fnexecution.v1.ProvisionServiceGrpc.ProvisionServiceImplBase
implements FnService
A
provision service that returns a static response to all calls.-
Method Summary
Modifier and TypeMethodDescriptionvoidclose().static StaticGrpcProvisionServicecreate(org.apache.beam.model.fnexecution.v1.ProvisionApi.ProvisionInfo info, HeaderAccessor headerAccessor) voidgetProvisionInfo(org.apache.beam.model.fnexecution.v1.ProvisionApi.GetProvisionInfoRequest request, org.apache.beam.vendor.grpc.v1p69p0.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.ProvisionApi.GetProvisionInfoResponse> responseObserver) voidregisterEnvironment(String workerId, org.apache.beam.model.pipeline.v1.RunnerApi.Environment environment) Methods inherited from class org.apache.beam.model.fnexecution.v1.ProvisionServiceGrpc.ProvisionServiceImplBase
bindServiceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.beam.vendor.grpc.v1p69p0.io.grpc.BindableService
bindService
-
Method Details
-
create
public static StaticGrpcProvisionService create(org.apache.beam.model.fnexecution.v1.ProvisionApi.ProvisionInfo info, HeaderAccessor headerAccessor) -
getProvisionInfo
public void getProvisionInfo(org.apache.beam.model.fnexecution.v1.ProvisionApi.GetProvisionInfoRequest request, org.apache.beam.vendor.grpc.v1p69p0.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.ProvisionApi.GetProvisionInfoResponse> responseObserver) - Specified by:
getProvisionInfoin interfaceorg.apache.beam.model.fnexecution.v1.ProvisionServiceGrpc.AsyncService
-
close
Description copied from interface:FnService.There should be no more calls to any service method by the time a call to
FnService.close()begins. Specifically, this means that aServerthat this service is bound to should have completed a call to theServer.shutdown()method, and all future incoming calls will be rejected.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceFnService- Throws:
Exception
-
registerEnvironment
public void registerEnvironment(String workerId, org.apache.beam.model.pipeline.v1.RunnerApi.Environment environment)
-