public class InProcessServerFactory extends ServerFactory
ServerFactory.InetSocketAddressServerFactory, ServerFactory.UrlFactory
Modifier and Type | Method and Description |
---|---|
org.apache.beam.vendor.grpc.v1.io.grpc.Server |
allocatePortAndCreate(org.apache.beam.vendor.grpc.v1.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() |
org.apache.beam.vendor.grpc.v1.io.grpc.Server |
create(org.apache.beam.vendor.grpc.v1.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, createWithPortSupplier, createWithUrlFactory, createWithUrlFactoryAndPortSupplier
public static InProcessServerFactory create()
public org.apache.beam.vendor.grpc.v1.io.grpc.Server allocatePortAndCreate(org.apache.beam.vendor.grpc.v1.io.grpc.BindableService service, org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor.Builder builder) throws java.io.IOException
ServerFactory
Endpoints.ApiServiceDescriptor.Builder
. Server applies GrpcContextHeaderAccessorProvider.interceptor()
to all incoming requests.allocatePortAndCreate
in class ServerFactory
java.io.IOException
public org.apache.beam.vendor.grpc.v1.io.grpc.Server create(org.apache.beam.vendor.grpc.v1.io.grpc.BindableService service, 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