Class GridTestThread

java.lang.Object
java.lang.Thread
org.apache.ignite.testframework.GridTestThread
All Implemented Interfaces:
Runnable

public class GridTestThread extends Thread
Test thread that has convenience failure checks.
  • Constructor Details

    • GridTestThread

      public GridTestThread(Runnable run)
      Parameters:
      run - Target runnable.
    • GridTestThread

      public GridTestThread(Callable<?> call)
      Parameters:
      call - Target callable.
    • GridTestThread

      public GridTestThread(Runnable run, String name)
      Parameters:
      run - Target runnable.
      name - Thread name.
    • GridTestThread

      public GridTestThread(Callable<?> call, String name)
      Parameters:
      call - Target callable.
      name - Thread name.
  • Method Details

    • run

      public final void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • onFinished

      protected void onFinished()
      Callback for subclasses.
    • onError

      protected void onError(Throwable err)
      Callback for subclasses.
      Parameters:
      err - Error.
    • getError

      public Throwable getError()
      Returns:
      Error.
    • checkError

      public void checkError() throws Exception
      Throws:
      Exception - If there is error.