public class InProcessServerFactory extends ServerFactory
ServerFactory.InetSocketAddressServerFactory| Modifier and Type | Method and Description |
|---|---|
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.
|
static InProcessServerFactory |
create() |
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.
|
createDefaultpublic static InProcessServerFactory create()
public io.grpc.Server allocatePortAndCreate(io.grpc.BindableService service,
org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor.Builder builder)
throws java.io.IOException
ServerFactoryEndpoints.ApiServiceDescriptor.Builder.allocatePortAndCreate in class ServerFactoryjava.io.IOExceptionpublic io.grpc.Server create(io.grpc.BindableService service,
org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor serviceDescriptor)
throws java.io.IOException
ServerFactorycreate in class ServerFactoryjava.io.IOException