コード例 #1
0
 /**
  * @param auditTimeoutThread
  * @param act
  * @return
  */
 private Audit submitAuditAndLaunch(AuditTimeoutThread auditTimeoutThread, Act act) {
   synchronized (auditTimeoutThread) {
     Future submitedThread = threadPoolTaskExecutor.submit(auditTimeoutThread);
     while (submitedThread != null && !submitedThread.isDone()) {
       try {
         Thread.sleep(500);
       } catch (InterruptedException ex) {
         LOGGER.error("", ex);
       }
       if (auditTimeoutThread.isDurationExceedsDelay()) {
         LOGGER.debug(
             "Audit Duration ExceedsDelay. The audit result "
                 + "is now managed in an asynchronous way.");
         break;
       }
     }
     if (null != auditTimeoutThread.getException()) {
       LOGGER.error("new KrashAuditException()");
       throw new KrashAuditException(auditTimeoutThread.getException());
     }
     return auditTimeoutThread.getAudit();
   }
 }
コード例 #2
0
 @Override
 protected void onActTerminated(Act act, Audit audit) {
   super.onActTerminated(act, audit);
   LOGGER.info("Audit files terminated on " + this.pageMap.keySet());
 }
コード例 #3
0
 @Override
 protected void onActTerminated(Act act, Audit audit) {
   super.onActTerminated(act, audit);
   LOGGER.info("Audit page terminated on " + this.pageUrl);
 }