From: Sasha Sherstnev Date: Fri, 4 Oct 2013 14:19:04 +0000 (+0100) Subject: Comment code for future options X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=61c75714c63045025f891312ff44876688cb57b5;p=jabaws.git Comment code for future options --- diff --git a/webservices/compbio/ws/client/Jws2Client.java b/webservices/compbio/ws/client/Jws2Client.java index cf0cf23..095d8fd 100644 --- a/webservices/compbio/ws/client/Jws2Client.java +++ b/webservices/compbio/ws/client/Jws2Client.java @@ -374,9 +374,11 @@ public class Jws2Client { jobId = wsproxy.analize(fastalist); } System.out.println("\n\rcalling predictor........."); - Thread.sleep(100); + Thread.sleep(1000); + /* JobStatus status = wsproxy.getJobStatus(jobId); System.out.println("\njob " + jobId + " status: " + status); + */ scores = wsproxy.getAnnotation(jobId); } catch (JobSubmissionException e) { System.err.println("Exception while submitting job to a web server. Exception details are below:"); @@ -466,11 +468,14 @@ public class Jws2Client { } System.out.println("\ncalling program........."); long startTime = System.nanoTime(); + /* while (JobStatus.RUNNING == msaws.getJobStatus(jobId)) { Thread.sleep(1000); long endTime = System.nanoTime(); System.out.println("job " + jobId + " time executing: "+ (endTime - startTime) / 1000000 +" msec, status: " + msaws.getJobStatus(jobId)); } + */ + Thread.sleep(1000); alignment = msaws.getResult(jobId); } catch (IOException e) { System.err.println("Exception while reading the input file. Check that the input file is a FASTA file! "