Class ConnectProxyServerProcessor

java.lang.Object
org.apache.tvm.rpc.ConnectProxyServerProcessor
All Implemented Interfaces:
Runnable, ServerProcessor

public class ConnectProxyServerProcessor extends Object implements ServerProcessor
Server processor for proxy connection.
  • Constructor Details

    • ConnectProxyServerProcessor

      public ConnectProxyServerProcessor(String host, int port, String key)
      Construct proxy server processor.
      Parameters:
      host - Proxy server host.
      port - Proxy server port.
      key - Proxy server key.
  • Method Details

    • setStartTimeCallback

      public void setStartTimeCallback(Runnable callback)
      Set a callback when a connection is received e.g., to record the time for a watchdog.
      Parameters:
      callback - Runnable object.
    • terminate

      public void terminate()
      Close the socket.
      Specified by:
      terminate in interface ServerProcessor
    • run

      public void run()
      Specified by:
      run in interface Runnable