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