X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fws%2FAWSThread.java;h=36e51c5c5d71fd1da02b2f9c2d13c11ab45d3bd0;hb=b3eead416d4a16141910b7dae1eda4eaf2272b6a;hp=2ef525640850f891bd26f9ed8b2c0c729bb35cc8;hpb=f0a4a06301b7c7c4f103af39a10da7e0b3b4f084;p=jalview.git diff --git a/src/jalview/ws/AWSThread.java b/src/jalview/ws/AWSThread.java index 2ef5256..36e51c5 100644 --- a/src/jalview/ws/AWSThread.java +++ b/src/jalview/ws/AWSThread.java @@ -116,9 +116,13 @@ public abstract class AWSThread extends Thread { StartJob(jobs[j]); } - + Cache.log.debug("Job " + jobs[j] + " is " + (jobs[j].submitted ? "submitted" : "not submitted")); if (jobs[j].submitted && !jobs[j].subjobComplete) { + jalview.bin.Cache.log.debug( + "Polling Job " + j + " Result state was:" + jobs[j].getState() + "(ServerError=" + jobs[j].isServerError() + + ")" + ); try { pollJob(jobs[j]); @@ -134,8 +138,8 @@ public abstract class AWSThread extends Thread { // Deal with Transaction exceptions wsInfo.appendProgressText(jobs[j].jobnum, MessageManager - .formatMessage("info.server_exception", new Object[] { - WebServiceName, ex.getMessage() })); + .formatMessage("info.server_exception", new Object[] + { WebServiceName, ex.getMessage() })); // always output the exception's stack trace to the log Cache.log.warn(WebServiceName + " job(" + jobs[j].jobnum + ") Server exception."); @@ -169,8 +173,8 @@ public abstract class AWSThread extends Thread WebserviceInfo.STATE_STOPPED_ERROR); Cache.log.error("Out of memory when retrieving Job " + j + " id:" + WsUrl + "/" + jobs[j].jobId, er); - new jalview.gui.OOMWarning("retrieving result for " - + WebServiceName, er); + new jalview.gui.OOMWarning( + "retrieving result for " + WebServiceName, er); System.gc(); } } @@ -185,10 +189,10 @@ public abstract class AWSThread extends Thread Thread.sleep(5000); } catch (InterruptedException e) { - Cache.log - .debug("Interrupted sleep waiting for next job poll.", e); + Cache.log.debug("Interrupted sleep waiting for next job poll.", + e); } - // System.out.println("I'm alive "+alTitle); + // System.out.println("I'm alive ?"); } } if (jobComplete && jobs != null) @@ -197,11 +201,11 @@ public abstract class AWSThread extends Thread } else { - Cache.log - .debug("WebServiceJob poll loop finished with no jobs created."); + Cache.log.debug( + "WebServiceJob poll loop finished with no jobs created."); wsInfo.setStatus(WebserviceInfo.STATE_STOPPED_ERROR); - wsInfo.appendProgressText(MessageManager - .getString("info.no_jobs_ran")); + wsInfo.appendProgressText( + MessageManager.getString("info.no_jobs_ran")); wsInfo.setFinishedNoResults(); } } @@ -383,7 +387,7 @@ public abstract class AWSThread extends Thread .getCodonFrames(); if (cf != null) { - codonframe = new ArrayList(); + codonframe = new ArrayList<>(); codonframe.addAll(cf); } }