Package org.apache.beam.sdk.fn.server
Class InProcessServerFactory
- java.lang.Object
-
- org.apache.beam.sdk.fn.server.ServerFactory
-
- org.apache.beam.sdk.fn.server.InProcessServerFactory
-
public class InProcessServerFactory extends ServerFactory
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.beam.sdk.fn.server.ServerFactory
ServerFactory.InetSocketAddressServerFactory, ServerFactory.UrlFactory
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.beam.vendor.grpc.v1p48p1.io.grpc.ServerallocateAddressAndCreate(java.util.List<org.apache.beam.vendor.grpc.v1p48p1.io.grpc.BindableService> services, org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor.Builder builder)Creates an instance of this server using an ephemeral address.static InProcessServerFactorycreate()org.apache.beam.vendor.grpc.v1p48p1.io.grpc.Servercreate(java.util.List<org.apache.beam.vendor.grpc.v1p48p1.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.-
Methods inherited from class org.apache.beam.sdk.fn.server.ServerFactory
createDefault, createEpollDomainSocket, createEpollSocket, createWithPortSupplier, createWithUrlFactory, createWithUrlFactoryAndPortSupplier
-
-
-
-
Method Detail
-
create
public static InProcessServerFactory create()
-
allocateAddressAndCreate
public org.apache.beam.vendor.grpc.v1p48p1.io.grpc.Server allocateAddressAndCreate(java.util.List<org.apache.beam.vendor.grpc.v1p48p1.io.grpc.BindableService> services, org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor.Builder builder) throws java.io.IOExceptionDescription copied from class:ServerFactoryCreates an instance of this server using an ephemeral address. The allocation of the address is server type dependent, which means the address may be a port for certain type of server, or a file path for other certain types. The chosen address is accessible to the caller from the URL set in the inputEndpoints.ApiServiceDescriptor.Builder. Server appliesGrpcContextHeaderAccessorProvider.interceptor()to all incoming requests.- Specified by:
allocateAddressAndCreatein classServerFactory- Throws:
java.io.IOException
-
create
public org.apache.beam.vendor.grpc.v1p48p1.io.grpc.Server create(java.util.List<org.apache.beam.vendor.grpc.v1p48p1.io.grpc.BindableService> services, org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor serviceDescriptor) throws java.io.IOExceptionDescription copied from class:ServerFactoryCreates an instance of this server at the address specified by the given service descriptor and bound to multiple services. Server appliesGrpcContextHeaderAccessorProvider.interceptor()to all incoming requests.- Specified by:
createin classServerFactory- Throws:
java.io.IOException
-
-