package jalview.ws.gui;
import jalview.bin.Cache;
+import jalview.bin.Console;
import jalview.datamodel.Alignment;
import jalview.datamodel.AlignmentI;
import jalview.datamodel.AlignmentOrder;
// order
+
String alTitle; // name which will be used to form new alignment window.
AlignmentI dataset; // dataset to which the new alignment will be
{
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;
} catch (Throwable throwable)
{
- Cache.log.error("failed to send the job to the alignment server", throwable);
+ Console.error("failed to send the job to the alignment server", throwable);
if (!server.handleSubmitError(throwable, j, wsInfo))
{
if (throwable instanceof Exception)
}
}
///// generic
+
if (j.getJobId() != null)
{
j.setSubmitted(true);
} 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: "
+ msjob.getJobId() + " on server " + WsUrl);
{
if (!server.handleCollectionException(e, msjob, wsInfo))
{
- 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.setState(JobState.SERVERERROR);
}
} catch (Exception ex)
{
- Cache.log.error(
+ Console.error(
"Unexpected exception when processing results for " + alTitle,
ex);
wsInfo.setStatus(WebserviceInfo.STATE_STOPPED_ERROR);
if (newFrame)
{
displayInNewFrame(al, alorders, hidden);
+
}
else
{