Interface TransportServer
-
- All Known Implementing Classes:
NettyTransportServer
public interface TransportServerThis is used for worker that receives data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.net.InetSocketAddressbindAddress()Get the bindInetSocketAddressbooleanbound()To check whether the server is bound to use.java.lang.Stringip()Get the bind IPintlisten(org.apache.hugegraph.computer.core.config.Config config, MessageHandler serverHandler)Startup server, return the port listened.intport()Get the bind portvoidshutdown()Stop the server.
-
-
-
Method Detail
-
listen
int listen(org.apache.hugegraph.computer.core.config.Config config, MessageHandler serverHandler)Startup server, return the port listened.
-
shutdown
void shutdown()
Stop the server.
-
bound
boolean bound()
To check whether the server is bound to use.- Returns:
- true if server is bound.
-
bindAddress
java.net.InetSocketAddress bindAddress()
Get the bindInetSocketAddress
-
ip
java.lang.String ip()
Get the bind IP
-
port
int port()
Get the bind port
-
-