From 61c75714c63045025f891312ff44876688cb57b5 Mon Sep 17 00:00:00 2001 From: Sasha Sherstnev Date: Fri, 4 Oct 2013 15:19:04 +0100 Subject: [PATCH] Comment code for future options --- webservices/compbio/ws/client/Jws2Client.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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! " -- 1.7.10.2