public static class ServerFactory.InetSocketAddressServerFactory extends ServerFactory
gRPC Server
using the default server factory.
The server is created listening any open port on "localhost".
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 apiServiceDescriptor)
Creates an instance of this server using an ephemeral port chosen automatically.
|
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.
|
createDefault
public io.grpc.Server allocatePortAndCreate(io.grpc.BindableService service, org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor.Builder apiServiceDescriptor) throws java.io.IOException
ServerFactory
Endpoints.ApiServiceDescriptor.Builder
.allocatePortAndCreate
in class ServerFactory
java.io.IOException
public io.grpc.Server create(io.grpc.BindableService service, org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor serviceDescriptor) throws java.io.IOException
ServerFactory
create
in class ServerFactory
java.io.IOException