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, ServerFactory.UrlFactory
Modifier and Type | Method and Description |
---|---|
org.apache.beam.vendor.grpc.v1p60p1.io.grpc.Server |
allocateAddressAndCreate(java.util.List<org.apache.beam.vendor.grpc.v1p60p1.io.grpc.BindableService> services,
org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor.Builder apiServiceDescriptor)
Creates an instance of this server using an ephemeral address.
|
org.apache.beam.vendor.grpc.v1p60p1.io.grpc.Server |
create(java.util.List<org.apache.beam.vendor.grpc.v1p60p1.io.grpc.BindableService> services,
org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor serviceDescriptor)
Creates an instance of this server at the address specified by the given service descriptor and
bound to multiple services.
|
createDefault, createEpollDomainSocket, createEpollSocket, createWithPortSupplier, createWithUrlFactory, createWithUrlFactoryAndPortSupplier
public org.apache.beam.vendor.grpc.v1p60p1.io.grpc.Server allocateAddressAndCreate(java.util.List<org.apache.beam.vendor.grpc.v1p60p1.io.grpc.BindableService> services, org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor.Builder apiServiceDescriptor) throws java.io.IOException
ServerFactory
Endpoints.ApiServiceDescriptor.Builder
. Server applies GrpcContextHeaderAccessorProvider.interceptor()
to all incoming requests.allocateAddressAndCreate
in class ServerFactory
java.io.IOException
public org.apache.beam.vendor.grpc.v1p60p1.io.grpc.Server create(java.util.List<org.apache.beam.vendor.grpc.v1p60p1.io.grpc.BindableService> services, org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor serviceDescriptor) throws java.io.IOException
ServerFactory
GrpcContextHeaderAccessorProvider.interceptor()
to all incoming requests.create
in class ServerFactory
java.io.IOException