JAL-2890 made CiClient static (as it should be) and added dummy umbrella
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Thu, 1 Feb 2018 17:16:01 +0000 (17:16 +0000)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Thu, 1 Feb 2018 17:16:01 +0000 (17:16 +0000)
clients

src/jalview/ext/cipres/TreeJob.java

index 5977a67..345279b 100644 (file)
@@ -14,9 +14,12 @@ import org.ngbw.restdatatypes.ParamError;
 public class TreeJob
 {
 
-  private final CiClient cipresClient;
+  private final static CiApplication app = CiApplication.getInstance();
 
-  private final CiApplication app = CiApplication.getInstance();
+  private final static CiClient cipresClient = new CiClient(
+          app.getAppKey(), app.getUsername(), app.getPassword(),
+          app.getRestUrl()
+  );
 
   private CiJob submittedJob;
 
@@ -30,13 +33,13 @@ public class TreeJob
 
   private boolean paramsValidated = false;
 
+  // Clients for umbrella application, not currently in use.
+  private static CiClient adminClient;
+
+  private CiClient userClient;
+
   public TreeJob()
   {
-    cipresClient = new CiClient(
-            app.getAppKey(), app.getUsername(), app.getPassword(),
-            app.getRestUrl()
-    );
-
   }
 
   public TreeJob(String alignmentFilePath)