public class GrpcFnServer<ServiceT extends FnService>
extends java.lang.Object
implements java.lang.AutoCloseable
gRPC Server which manages a single FnService. The lifetime of the
 service is bound to the GrpcFnServer.| Modifier and Type | Method and Description | 
|---|---|
| static java.util.List<GrpcFnServer<? extends FnService>> | allocatePortAndCreateFor(java.util.List<? extends FnService> services,
                        ServerFactory factory)Create  GrpcFnServers for the providedFnServices running on an arbitrary port. | 
| static <ServiceT extends FnService> | allocatePortAndCreateFor(ServiceT service,
                        ServerFactory factory)Create a  GrpcFnServerfor the providedFnServicerunning on an arbitrary port. | 
| void | close() | 
| static java.util.List<GrpcFnServer<? extends FnService>> | create(java.util.List<? extends FnService> services,
      org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor endpoint,
      ServerFactory factory)Create  GrpcFnServers for the providedFnServices running on a specified port. | 
| static <ServiceT extends FnService> | create(ServiceT service,
      org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor endpoint)Deprecated. 
 This create function is used for Dataflow migration purpose only. | 
| static <ServiceT extends FnService> | create(ServiceT service,
      org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor endpoint,
      ServerFactory factory)Create a  GrpcFnServerfor the providedFnServicewhich will run at the endpoint
 specified in theEndpoints.ApiServiceDescriptor. | 
| org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor | getApiServiceDescriptor()Get an  Endpoints.ApiServiceDescriptordescribing the endpoint thisGrpcFnServeris bound
 to. | 
| org.apache.beam.vendor.grpc.v1p60p1.io.grpc.Server | getServer()Get the underlying  Servercontained by thisGrpcFnServer. | 
| ServiceT | getService()Get the service exposed by this  GrpcFnServer. | 
public static <ServiceT extends FnService> GrpcFnServer<ServiceT> allocatePortAndCreateFor(ServiceT service, ServerFactory factory) throws java.io.IOException
GrpcFnServer for the provided FnService running on an arbitrary port.java.io.IOExceptionpublic static java.util.List<GrpcFnServer<? extends FnService>> allocatePortAndCreateFor(java.util.List<? extends FnService> services, ServerFactory factory) throws java.io.IOException
GrpcFnServers for the provided FnServices running on an arbitrary port.java.io.IOExceptionpublic static java.util.List<GrpcFnServer<? extends FnService>> create(java.util.List<? extends FnService> services, org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor endpoint, ServerFactory factory) throws java.io.IOException
GrpcFnServers for the provided FnServices running on a specified port.java.io.IOExceptionpublic static <ServiceT extends FnService> GrpcFnServer<ServiceT> create(ServiceT service, org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor endpoint, ServerFactory factory) throws java.io.IOException
GrpcFnServer for the provided FnService which will run at the endpoint
 specified in the Endpoints.ApiServiceDescriptor.java.io.IOException@Deprecated public static <ServiceT extends FnService> GrpcFnServer<ServiceT> create(ServiceT service, org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor endpoint)
public org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor getApiServiceDescriptor()
Endpoints.ApiServiceDescriptor describing the endpoint this GrpcFnServer is bound
 to.public ServiceT getService()
GrpcFnServer.public org.apache.beam.vendor.grpc.v1p60p1.io.grpc.Server getServer()
Server contained by this GrpcFnServer.public void close()
           throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exception