From: kjvdheide Date: Thu, 1 Feb 2018 17:06:03 +0000 (+0000) Subject: JAL-2890 made the submitted job a class value and added getter for it X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=550073b7a19025c6c3a0005787b50e9c5ef29e73;p=jalview.git JAL-2890 made the submitted job a class value and added getter for it --- diff --git a/src/jalview/ext/cipres/TreeJob.java b/src/jalview/ext/cipres/TreeJob.java index 6ad8033..5977a67 100644 --- a/src/jalview/ext/cipres/TreeJob.java +++ b/src/jalview/ext/cipres/TreeJob.java @@ -18,6 +18,8 @@ public class TreeJob private final CiApplication app = CiApplication.getInstance(); + private CiJob submittedJob; + private String tool; private Map> vParams = new HashMap<>(); @@ -178,7 +180,7 @@ public class TreeJob */ public CiJob submitJob(String toolName) { - CiJob submittedJob = null; + if (!paramsValidated) { // validate before running some expensive job first. @@ -196,6 +198,7 @@ public class TreeJob { submittedJob = cipresClient .submitJob(toolName, vParams, inputParams, metadata); + } catch (CiCipresException ce) { ErrorData ed = ce.getErrorData(); @@ -216,5 +219,9 @@ public class TreeJob return submittedJob; } + public CiJob getSubmittedJob() + { + return submittedJob; + } }