Package org.apache.tvm.rpc
Class ConnectProxyServerProcessor
java.lang.Object
org.apache.tvm.rpc.ConnectProxyServerProcessor
- All Implemented Interfaces:
Runnable
,ServerProcessor
Server processor for proxy connection.
-
Constructor Summary
ConstructorDescriptionConnectProxyServerProcessor
(String host, int port, String key) Construct proxy server processor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
run()
void
setStartTimeCallback
(Runnable callback) Set a callback when a connection is received e.g., to record the time for a watchdog.void
Close the socket.
-
Constructor Details
-
ConnectProxyServerProcessor
Construct proxy server processor.- Parameters:
host
- Proxy server host.port
- Proxy server port.key
- Proxy server key.
-
-
Method Details
-
setStartTimeCallback
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 interfaceServerProcessor
-
run
public void run()
-