X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Fws%2Fjws1%2FJPredThread.java;h=a39945edefa78f84f36baa4aab500a23d69c1e37;hb=912b741af87f3f714f9e01c5e450a2818d568317;hp=9d8c11cb50153fe672d533dce25da57f62712c7c;hpb=a1984b1c8c273ed33c7ce9283039f4027dcae2de;p=jalview.git diff --git a/src/jalview/ws/jws1/JPredThread.java b/src/jalview/ws/jws1/JPredThread.java index 9d8c11c..a39945e 100644 --- a/src/jalview/ws/jws1/JPredThread.java +++ b/src/jalview/ws/jws1/JPredThread.java @@ -22,7 +22,7 @@ package jalview.ws.jws1; import jalview.analysis.AlignSeq; import jalview.analysis.SeqsetUtils; -import jalview.bin.Cache; +import jalview.bin.Console; import jalview.datamodel.Alignment; import jalview.datamodel.AlignmentAnnotation; import jalview.datamodel.AlignmentI; @@ -119,17 +119,17 @@ class JPredThread extends JWS1Thread implements WSClientI JpredResult result = (JpredResult) this.result; - Cache.debug("Parsing output from JNet job."); + Console.debug("Parsing output from JNet job."); // JPredFile prediction = new JPredFile("C:/JalviewX/files/jpred.txt", // "File"); JPredFile prediction = new JPredFile(result.getPredfile(), DataSourceType.PASTE); SequenceI[] preds = prediction.getSeqsAsArray(); - Cache.debug("Got prediction profile."); + Console.debug("Got prediction profile."); if ((this.msa != null) && (result.getAligfile() != null)) { - Cache.debug("Getting associated alignment."); + Console.debug("Getting associated alignment."); // we ignore the returned alignment if we only predicted on a single // sequence FileFormatI format = new IdentifyFile() @@ -461,7 +461,7 @@ class JPredThread extends JWS1Thread implements WSClientI { job.setSubmitted(true); job.setSubjobComplete(false); - Cache.info(WsUrl + " Job Id '" + job.getJobId() + "'"); + Console.info(WsUrl + " Job Id '" + job.getJobId() + "'"); } } else @@ -484,7 +484,7 @@ class JPredThread extends JWS1Thread implements WSClientI "JPredWS Client: Failed to submit the prediction. Quite possibly because of a server error - see below)\n" + e.getMessage() + "\n"); - Cache.warn("Server Exception", e); + Console.warn("Server Exception", e); } else { @@ -495,7 +495,7 @@ class JPredThread extends JWS1Thread implements WSClientI "info.failed_to_submit_prediction", new String[] { e.getMessage(), wsInfo.getProgressText() })); - Cache.debug("Failed Submission of job " + j.getJobnum(), e); + Console.debug("Failed Submission of job " + j.getJobnum(), e); } j.setAllowedServerExceptions(-1); @@ -522,7 +522,7 @@ class JPredThread extends JWS1Thread implements WSClientI } catch (Exception ex) { - Cache.error( + Console.error( "Unexpected exception when processing results for " + altitle, ex); wsInfo.setStatus(WebserviceInfo.STATE_STOPPED_ERROR); @@ -576,9 +576,9 @@ class JPredThread extends JWS1Thread implements WSClientI msa = (j.msa != null) ? true : msa; try { - Cache.debug("Parsing output of job " + jn); + Console.debug("Parsing output of job " + jn); jobres = j.getResultSet(); - Cache.debug("Finished parsing output."); + Console.debug("Finished parsing output."); if (jobs.length == 1) { res = jobres; @@ -591,7 +591,7 @@ class JPredThread extends JWS1Thread implements WSClientI } } catch (Exception e) { - Cache.error("JNet Client: JPred Annotation Parse Error", e); + Console.error("JNet Client: JPred Annotation Parse Error", e); wsInfo.setStatus(j.getJobnum(), WebserviceInfo.STATE_STOPPED_ERROR); wsInfo.appendProgressText(j.getJobnum(), @@ -650,7 +650,7 @@ class JPredThread extends JWS1Thread implements WSClientI } else { - Cache.info("Append results onto existing alignment."); + Console.info("Append results onto existing alignment."); } } }