类 RPCWatchdog
java.lang.Object
java.lang.Thread
org.apache.tvm.rpc.RPCWatchdog
- 所有已实现的接口
Runnable
RPC 的看门狗。
-
嵌套类概要
从类 java.lang.Thread 继承的嵌套类/接口
Thread.State, Thread.UncaughtExceptionHandler
-
字段概要
从类 java.lang.Thread 继承的字段
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
构造器概要
构造器 -
方法概要
修饰符和类型方法描述void
使用看门狗完成超时(必须在 startTimeout 之后调用)。void
run()
如果超时,则等待并终止 RPC。void
startTimeout
(int timeout) 使用看门狗启动超时(必须在 finishTimeout 之前调用)。protected void
终止正在运行的 RPCActivity 进程的默认方法。从类 java.lang.Thread 继承的方法
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
构造器详细信息
-
RPCWatchdog
public RPCWatchdog()
-
-
方法详细信息
-
startTimeout
public void startTimeout(int timeout) 使用看门狗启动超时(必须在 finishTimeout 之前调用)。- 参数
timeout
- 看门狗超时时间,单位为毫秒。
-
finishTimeout
public void finishTimeout()使用看门狗完成超时(必须在 startTimeout 之后调用)。 -
run
public void run()如果超时,则等待并终止 RPC。 -
terminate
protected void terminate()终止正在运行的 RPCActivity 进程的默认方法。
-