Class StaticGrpcProvisionService

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.apache.beam.model.fnexecution.v1.ProvisionServiceGrpc.AsyncService, org.apache.beam.sdk.fn.server.FnService, org.apache.beam.vendor.grpc.v1p69p0.io.grpc.BindableService

    public class StaticGrpcProvisionService
    extends org.apache.beam.model.fnexecution.v1.ProvisionServiceGrpc.ProvisionServiceImplBase
    implements org.apache.beam.sdk.fn.server.FnService
    A provision service that returns a static response to all calls.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      static StaticGrpcProvisionService create​(org.apache.beam.model.fnexecution.v1.ProvisionApi.ProvisionInfo info, org.apache.beam.sdk.fn.server.HeaderAccessor headerAccessor)  
      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)  
      void registerEnvironment​(java.lang.String workerId, org.apache.beam.model.pipeline.v1.RunnerApi.Environment environment)  
      • Methods inherited from class org.apache.beam.model.fnexecution.v1.ProvisionServiceGrpc.ProvisionServiceImplBase

        bindService
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.beam.vendor.grpc.v1p69p0.io.grpc.BindableService

        bindService
    • Method Detail

      • create

        public static StaticGrpcProvisionService create​(org.apache.beam.model.fnexecution.v1.ProvisionApi.ProvisionInfo info,
                                                        org.apache.beam.sdk.fn.server.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:
        getProvisionInfo in interface org.apache.beam.model.fnexecution.v1.ProvisionServiceGrpc.AsyncService
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface org.apache.beam.sdk.fn.server.FnService
        Throws:
        java.lang.Exception
      • registerEnvironment

        public void registerEnvironment​(java.lang.String workerId,
                                        org.apache.beam.model.pipeline.v1.RunnerApi.Environment environment)