package jalview.ws.jws2;
import jalview.analysis.AlignSeq;
-import jalview.bin.Cache;
+import jalview.bin.Console;
import jalview.datamodel.Alignment;
import jalview.datamodel.AlignmentI;
import jalview.datamodel.AlignmentOrder;
{
cancelledMessage += ("\nProblems cancelling the job : Exception received...\n"
+ exc + "\n");
- Cache.log.warn(
+ Console.warn(
"Exception whilst cancelling " + jobs[job].getJobId(),
exc);
}
MsaWSJob j = (MsaWSJob) job;
if (j.isSubmitted())
{
- if (Cache.log.isDebugEnabled())
+ if (Console.isDebugEnabled())
{
- Cache.log.debug(
+ Console.debug(
"Tried to submit an already submitted job " + j.getJobId());
}
return;
{
j.setSubmitted(true);
j.setSubjobComplete(false);
- // System.out.println(WsURL + " Job Id '" + jobId + "'");
+ // jalview.bin.Console.outPrintln(WsURL + " Job Id '" + jobId + "'");
return;
}
else
} catch (Error e)
{
// For unexpected errors
- System.err.println(WebServiceName
+ jalview.bin.Console.errPrintln(WebServiceName
+ "Client: Failed to submit the sequences for alignment (probably a server side problem)\n"
+ "When contacting Server:" + WsUrl + "\n");
e.printStackTrace(System.err);
} catch (Exception e)
{
// For unexpected errors
- System.err.println(WebServiceName
+ jalview.bin.Console.errPrintln(WebServiceName
+ "Client: Failed to submit the sequences for alignment (probably a server side problem)\n"
+ "When contacting Server:" + WsUrl + "\n");
e.printStackTrace(System.err);
} catch (Exception e)
{
- Cache.log.warn(
+ Console.warn(
"Exception when retrieving remaining Job progress data for job "
+ msjob.getJobId() + " on server " + WsUrl);
e.printStackTrace();
}
} while (nunchanged > 0 && nexcept > 0);
- if (Cache.log.isDebugEnabled())
+ if (Console.isDebugEnabled())
{
- System.out.println("Job Execution file for job: "
+ jalview.bin.Console.outPrintln("Job Execution file for job: "
+ msjob.getJobId() + " on server " + WsUrl);
- System.out.println(msjob.getStatus());
- System.out.println("*** End of status");
+ jalview.bin.Console.outPrintln(msjob.getStatus());
+ jalview.bin.Console.outPrintln("*** End of status");
}
try
{
// job has failed for some reason - probably due to invalid
// parameters
- Cache.log.debug(
+ Console.debug(
"Results not available for finished job - marking as broken job.",
e);
msjob.jobProgress.append(
msjob.setjobStatus(JobStatus.FAILED);
} catch (Exception e)
{
- Cache.log.error("Couldn't get Alignment for job.", e);
+ Console.error("Couldn't get Alignment for job.", e);
// TODO: Increment count and retry ?
msjob.setjobStatus(JobStatus.UNDEFINED);
}
} catch (Exception ex)
{
- Cache.log.error(
+ Console.error(
"Unexpected exception when processing results for " + alTitle,
ex);
wsInfo.setStatus(WebserviceInfo.STATE_STOPPED_ERROR);
else
{
// TODO 2.9.x feature
- System.out.println("MERGE WITH OLD FRAME");
+ jalview.bin.Console.outPrintln("MERGE WITH OLD FRAME");
// TODO: modify alignment in original frame, replacing old for new
// alignment using the commands.EditCommand model to ensure the update can
// be undone