public abstract class ServerFactory
extends java.lang.Object
gRPC server factory.| Modifier and Type | Class and Description |
|---|---|
static class |
ServerFactory.InetSocketAddressServerFactory
Creates a
gRPC Server using the default server factory. |
| Constructor and Description |
|---|
ServerFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract io.grpc.Server |
allocatePortAndCreate(io.grpc.BindableService service,
org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor.Builder builder)
Creates an instance of this server using an ephemeral port chosen automatically.
|
abstract io.grpc.Server |
create(io.grpc.BindableService service,
org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor serviceDescriptor)
Creates an instance of this server at the address specified by the given service descriptor.
|
static ServerFactory |
createDefault()
Create a default
ServerFactory. |
public static ServerFactory createDefault()
ServerFactory.public abstract io.grpc.Server allocatePortAndCreate(io.grpc.BindableService service,
org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor.Builder builder)
throws java.io.IOException
Endpoints.ApiServiceDescriptor.Builder.java.io.IOExceptionpublic abstract io.grpc.Server create(io.grpc.BindableService service,
org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor serviceDescriptor)
throws java.io.IOException
java.io.IOException