类 Server

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

public class Server extends Object
RPC 服务器。
  • 构造器详细信息

    • Server

      public Server(int serverPort) throws IOException
      启动独立服务器。
      参数
      serverPort - 端口。
      抛出
      IOException - 如果无法绑定到 localhost:端口。
    • Server

      public Server(String proxyHost, int proxyPort, String key)
      启动连接到代理的服务器。使用 sun.misc.SharedSecrets.getJavaIOFileDescriptorAccess 获取套接字的文件描述符。
      参数
      proxyHost - 代理服务器主机。
      proxyPort - 代理服务器端口。
      key - 用于标识服务器的密钥。
  • 方法详细信息

    • start

      public void start()
      启动服务器。
    • terminate

      public void terminate()
      停止服务器。