/** Cancel any pending processing. */ public synchronized void cancelProcessing() { if (isRunning()) { getLogger().info("Cancelling cache validation."); runThread.stopRequested = true; runThread.interrupt(); } }
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; }