Class ExpansionServer
- java.lang.Object
-
- org.apache.beam.sdk.expansion.service.ExpansionServer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class ExpansionServer extends java.lang.Object implements java.lang.AutoCloseableAgRPC Serverfor an ExpansionService.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static ExpansionServercreate(ExpansionService service, java.lang.String host, int port)Create aExpansionServerfor the provided ExpansionService running on an arbitrary port.java.lang.StringgetHost()Get the host that thisExpansionServeris bound to.intgetPort()Get the port that thisExpansionServeris bound to.
-
-
-
Method Detail
-
create
public static ExpansionServer create(ExpansionService service, java.lang.String host, int port) throws java.io.IOException
Create aExpansionServerfor the provided ExpansionService running on an arbitrary port.If port is 0, a free port will be assigned.
- Throws:
java.io.IOException
-
getHost
public java.lang.String getHost()
Get the host that thisExpansionServeris bound to.
-
getPort
public int getPort()
Get the port that thisExpansionServeris bound to.
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
-