Package org.apache.tvm.rpc
Class Server
java.lang.Object
org.apache.tvm.rpc.Server
RPC Server.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Server
Start a standalone server.- Parameters:
serverPort- Port.- Throws:
IOException- if failed to bind localhost:port.
-
Server
Start a server connected to proxy. Use sun.misc.SharedSecrets.getJavaIOFileDescriptorAccess to get file descriptor for the socket.- Parameters:
proxyHost- The proxy server host.proxyPort- The proxy server port.key- The key to identify the server.
-
-
Method Details
-
start
public void start()Start the server. -
terminate
public void terminate()Stop the server.
-