Comment code for future options
authorSasha Sherstnev <a.sherstnev@dundee.ac.uk>
Fri, 4 Oct 2013 14:19:04 +0000 (15:19 +0100)
committerSasha Sherstnev <a.sherstnev@dundee.ac.uk>
Fri, 4 Oct 2013 14:19:04 +0000 (15:19 +0100)
webservices/compbio/ws/client/Jws2Client.java

index cf0cf23..095d8fd 100644 (file)
@@ -374,9 +374,11 @@ public class Jws2Client {
                                jobId = wsproxy.analize(fastalist);\r
                        }\r
                        System.out.println("\n\rcalling predictor.........");\r
-                       Thread.sleep(100);\r
+                       Thread.sleep(1000);\r
+                       /*\r
                        JobStatus status = wsproxy.getJobStatus(jobId);\r
                        System.out.println("\njob " + jobId + " status: " + status);\r
+                       */\r
                        scores = wsproxy.getAnnotation(jobId);\r
                } catch (JobSubmissionException e) {\r
                        System.err.println("Exception while submitting job to a web server. Exception details are below:");\r
@@ -466,11 +468,14 @@ public class Jws2Client {
                        }\r
                        System.out.println("\ncalling program.........");\r
                        long startTime = System.nanoTime();\r
+                       /*\r
                        while (JobStatus.RUNNING == msaws.getJobStatus(jobId)) {\r
                                Thread.sleep(1000);\r
                                long endTime = System.nanoTime();\r
                                System.out.println("job " + jobId + " time executing: "+ (endTime - startTime) / 1000000 +" msec, status: " + msaws.getJobStatus(jobId));\r
                        }\r
+                       */\r
+                       Thread.sleep(1000);\r
                        alignment = msaws.getResult(jobId);\r
                } catch (IOException e) {\r
                        System.err.println("Exception while reading the input file. Check that the input file is a FASTA file! "\r