Class RPCWatchdog

java.lang.Object
java.lang.Thread
org.apache.tvm.rpc.RPCWatchdog
All Implemented Interfaces:
Runnable

public class RPCWatchdog extends Thread
Watchdog for RPC.
  • Constructor Details

    • RPCWatchdog

      public RPCWatchdog()
  • Method Details

    • startTimeout

      public void startTimeout(int timeout)
      Start a timeout with watchdog (must be called before finishTimeout).
      Parameters:
      timeout - watchdog timeout in ms.
    • finishTimeout

      public void finishTimeout()
      Finish a timeout with watchdog (must be called after startTimeout).
    • run

      public void run()
      Wait and kill RPC if timeout is exceeded.
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • terminate

      protected void terminate()
      Default method to terminate the running RPCActivity process.