Class InProcessServerFactory


  • public class InProcessServerFactory
    extends ServerFactory
    A ServerFactory which creates servers with the InProcessServerBuilder.
    • Method Detail

      • allocateAddressAndCreate

        public org.apache.beam.vendor.grpc.v1p48p1.io.grpc.Server allocateAddressAndCreate​(java.util.List<org.apache.beam.vendor.grpc.v1p48p1.io.grpc.BindableService> services,
                                                                                           org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor.Builder builder)
                                                                                    throws java.io.IOException
        Description copied from class: ServerFactory
        Creates an instance of this server using an ephemeral address. The allocation of the address is server type dependent, which means the address may be a port for certain type of server, or a file path for other certain types. The chosen address is accessible to the caller from the URL set in the input Endpoints.ApiServiceDescriptor.Builder. Server applies GrpcContextHeaderAccessorProvider.interceptor() to all incoming requests.
        Specified by:
        allocateAddressAndCreate in class ServerFactory
        Throws:
        java.io.IOException
      • create

        public org.apache.beam.vendor.grpc.v1p48p1.io.grpc.Server create​(java.util.List<org.apache.beam.vendor.grpc.v1p48p1.io.grpc.BindableService> services,
                                                                         org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor serviceDescriptor)
                                                                  throws java.io.IOException
        Description copied from class: ServerFactory
        Creates an instance of this server at the address specified by the given service descriptor and bound to multiple services. Server applies GrpcContextHeaderAccessorProvider.interceptor() to all incoming requests.
        Specified by:
        create in class ServerFactory
        Throws:
        java.io.IOException