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 TypeMethodDescriptionvoid
close()
static ExpansionServer
create
(ExpansionService service, String host, int port) Create aExpansionServer
for the provided ExpansionService running on an arbitrary port.getHost()
Get the host that thisExpansionServer
is bound to.int
getPort()
Get the port that thisExpansionServer
is bound to.
-
Method Details
-
create
public static ExpansionServer create(ExpansionService service, String host, int port) throws IOException Create aExpansionServer
for 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 thisExpansionServer
is bound to. -
getPort
public int getPort()Get the port that thisExpansionServer
is bound to. -
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-