private boolean processThread(RunThread runThread, long timeout) throws InterruptedException { runThread.start(); runThread.join(timeout * 1000); if (runThread.isAlive()) { TestVerifier.testStatus = TestVerifier.TEST_STATUS.TIMEOUT; runThread.interrupt(); return false; } return true; }
/** Are we running a validation? */ public synchronized boolean isRunning() { return (runThread != null && runThread.isAlive()); }