Package org.apache.tvm.rpc
Class ConnectTrackerServerProcessor
java.lang.Object
org.apache.tvm.rpc.ConnectTrackerServerProcessor
- All Implemented Interfaces:
Runnable
,ServerProcessor
Server processor with tracker connection (based on standalone).
This RPC Server registers itself with an RPC Tracker for a specific queue
(using its device key) and listens for incoming requests.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
-
Constructor Summary
ConstructorDescriptionConnectTrackerServerProcessor
(String trackerHost, int trackerPort, String key, RPCWatchdog watchdog) Construct tracker server processor. -
Method Summary
-
Field Details
-
MAX_SERVER_PORT
public static final int MAX_SERVER_PORT- See Also:
-
TRACKER_TIMEOUT
public static final int TRACKER_TIMEOUT- See Also:
-
RETRY_PERIOD
public static final int RETRY_PERIOD- See Also:
-
STALE_TRACKER_TIMEOUT
public static final int STALE_TRACKER_TIMEOUT- See Also:
-
HARD_TIMEOUT_DEFAULT
public static final int HARD_TIMEOUT_DEFAULT- See Also:
-
-
Constructor Details
-
ConnectTrackerServerProcessor
public ConnectTrackerServerProcessor(String trackerHost, int trackerPort, String key, RPCWatchdog watchdog) throws IOException Construct tracker server processor.- Parameters:
trackerHost
- Tracker host.trackerPort
- Tracker port.key
- Device key.watchdog
- watch for timeout, etc.- Throws:
IOException
- when socket fails to open.
-
-
Method Details
-
getMatchKey
-
terminate
public void terminate()- Specified by:
terminate
in interfaceServerProcessor
-
run
public void run()
-