Class ExpansionServer
java.lang.Object
org.apache.beam.sdk.expansion.service.ExpansionServer
- All Implemented Interfaces:
AutoCloseable
A
gRPC Server for an ExpansionService.-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static ExpansionServercreate(ExpansionService service, String host, int port) Create aExpansionServerfor the provided ExpansionService running on an arbitrary port.getHost()Get the host that thisExpansionServeris bound to.intgetPort()Get the port that thisExpansionServeris bound to.
-
Method Details
-
create
public static ExpansionServer create(ExpansionService service, String host, int port) throws IOException Create aExpansionServerfor the provided ExpansionService running on an arbitrary port.If port is 0, a free port will be assigned.
- Throws:
IOException
-
getHost
Get the host that thisExpansionServeris bound to. -
getPort
public int getPort()Get the port that thisExpansionServeris bound to. -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-