Class Server

java.lang.Object
org.apache.tvm.rpc.Server

public class Server extends Object
RPC Server.
  • Constructor Details

    • Server

      public Server(int serverPort) throws IOException
      Start a standalone server.
      Parameters:
      serverPort - Port.
      Throws:
      IOException - if failed to bind localhost:port.
    • Server

      public Server(String proxyHost, int proxyPort, String key)
      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.