Class GridTestThread

  • All Implemented Interfaces:
    Runnable

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

      • 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 Detail

      • 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.